packages: lvm2/lvm2.spec - make sure initrd tools work

arekm arekm at pld-linux.org
Sun Mar 4 11:43:45 CET 2012


Author: arekm                        Date: Sun Mar  4 10:43:45 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- make sure initrd tools work

---- Files affected:
packages/lvm2:
   lvm2.spec (1.186 -> 1.187) 

---- Diffs:

================================================================
Index: packages/lvm2/lvm2.spec
diff -u packages/lvm2/lvm2.spec:1.186 packages/lvm2/lvm2.spec:1.187
--- packages/lvm2/lvm2.spec:1.186	Sun Mar  4 11:20:55 2012
+++ packages/lvm2/lvm2.spec	Sun Mar  4 11:43:39 2012
@@ -299,6 +299,18 @@
 %{__make} -j1 -C tools dmsetup.static lvm.static %{?with_dietlibc:DIETLIBC_LIBS="-lcompat"}
 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 > /dev/null 2>&1
+	rc=$?
+	if [ $rc -gt 127 ]; then
+		echo "Unexpected failure (exit status: $rc) from $tool. Does this tool work?!" >&2
+		exit 1
+	fi
+done
+
+
 %{?with_dietlibc:mv -f libdm/ioctl/libdevmapper.a diet-libdevmapper.a}
 %{__make} clean
 
@@ -487,6 +499,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.187  2012/03/04 10:43:39  arekm
+- make sure initrd tools work
+
 Revision 1.186  2012/03/04 10:20:55  baggins
 - rel 2
 - build initrd version with uClibc, as diet build segfaults
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lvm2/lvm2.spec?r1=1.186&r2=1.187&f=u



More information about the pld-cvs-commit mailing list