mirror of
https://github.com/containers/podman
synced 2024-10-20 01:03:51 +00:00
ba9f18e2b8
It's not possible to run any of the scripts on distributions which do have `bash` not in `/bin`. This is being fixed by using `/usr/bin/env bash` instead. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
16 lines
340 B
Bash
Executable file
16 lines
340 B
Bash
Executable file
#!/usr/bin/env bash
|
|
tmpdir="$PWD/tmp.$RANDOM"
|
|
mkdir -p "$tmpdir"
|
|
trap 'rm -fr "$tmpdir"' EXIT
|
|
cc -o "$tmpdir"/libdm_tag -ldevmapper -x c - > /dev/null 2> /dev/null << EOF
|
|
#include <libdevmapper.h>
|
|
int main() {
|
|
struct dm_task *task;
|
|
dm_task_deferred_remove(task);
|
|
return 0;
|
|
}
|
|
EOF
|
|
if test $? -ne 0 ; then
|
|
echo libdm_no_deferred_remove
|
|
fi
|