-# check if tools works
-for tool in initrd-lvm initrd-dmsetup; do
- LVM_SYSTEM_DIR=$(pwd) ./$tool help && rc=$? || rc=$?
- if [ $rc -gt 127 ]; then
- echo >&2 "Unexpected failure (exit status: $rc) from $tool. Does this tool work?!"
- exit 1
- fi
-done
-
-