mv -f tools/lvm.static initrd-lvm
mv -f tools/dmsetup.static initrd-dmsetup
-# 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
-
-
%{?with_dietlibc:mv -f libdm/ioctl/libdevmapper.a diet-libdevmapper.a}
%{__make} clean