github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/hack/libdm_tag.sh (about) 1 #!/bin/bash 2 tmpdir="$PWD/tmp.$RANDOM" 3 mkdir -p "$tmpdir" 4 trap 'rm -fr "$tmpdir"' EXIT 5 cc -o "$tmpdir"/libdm_tag -ldevmapper -x c - > /dev/null 2> /dev/null << EOF 6 #include <libdevmapper.h> 7 int main() { 8 struct dm_task *task; 9 dm_task_deferred_remove(task); 10 return 0; 11 } 12 EOF 13 if test $? -ne 0 ; then 14 echo libdm_no_deferred_remove 15 fi