geninitrd/trunk/geninitrd

glen cvs at pld-linux.org
Sat Jun 3 15:03:17 CEST 2006


Author: glen
Date: Sat Jun  3 15:03:15 2006
New Revision: 7464

Modified:
   geninitrd/trunk/geninitrd
Log:
Output verbose message when activating dmraid and lvm volumes. Drop making nodes on readonly /dev and the error messages failing to do so.

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd	(original)
+++ geninitrd/trunk/geninitrd	Sat Jun  3 15:03:15 2006
@@ -1149,6 +1149,7 @@
 	mount -t sysfs none /sys
 	# 2 secs was enough for my system to initialize. but really this is udev issue?
 	usleep 2000000
+	echo 'Activating Device-Mapper RAID(s)'
 	/sbin/dmraid -ay -i
 	umount /sys
 	umount /proc
@@ -1300,9 +1301,12 @@
 		fi
 		lvm dumpconfig | awk '/filter=/' >> "$MNTIMAGE/etc/lvm.conf"
 		echo "}" >> "$MNTIMAGE/etc/lvm.conf"
-		echo "LVM_SYSTEM_DIR=/tmp lvm vgscan --ignorelockingfailure" >> "$s"
-		echo "LVM_SYSTEM_DIR=/tmp lvm vgchange --ignorelockingfailure -a y $VGVOLUME" >> "$s"
-		echo "LVM_SYSTEM_DIR=/tmp lvm vgscan --ignorelockingfailure --mknodes" >> "$s"
+
+		echo ": 'Scanning for Volume Groups'" >> "$s"
+		echo "LVM_SYSTEM_DIR=/tmp lvm vgscan --ignorelockingfailure 2>/dev/null" >> "$s"
+		echo ": 'Activating Volume Groups'" >> "$s"
+		echo "LVM_SYSTEM_DIR=/tmp lvm vgchange --ignorelockingfailure -a y $VGVOLUME 2>/dev/null" >> "$s"
+
 		# Find out major/minor
 		echo "majmin=\"\`LVM_SYSTEM_DIR=/tmp lvm lvdisplay --ignorelockingfailure -c $org_rootdev\`\"" >> "$s"
 		echo "majmin=\"\${majmin#*/}\"" >> "$s"


More information about the pld-cvs-commit mailing list