SVN: geninitrd/trunk/geninitrd

arekm arekm at pld-linux.org
Tue Mar 1 11:31:34 CET 2011


Author: arekm
Date: Tue Mar  1 11:31:34 2011
New Revision: 12175

Modified:
   geninitrd/trunk/geninitrd
Log:
Boot fails when using rootfsflags option (rootfs is not mounted properly). Fix that by using correct variable name.

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd	(original)
+++ geninitrd/trunk/geninitrd	Tue Mar  1 11:31:34 2011
@@ -772,9 +772,9 @@
 			device=$rootdev
 		fi
 
-		[ -n "$ROOTFSFLAG" ] && ROOTFSFLAGS="-o $ROOTFSFLAGS"
+		[ -n "$ROOTFSFLAGS" ] && ROOTFSFLAGS="-o $ROOTFSFLAGS"
 
-		mount -t $rootfs -r $device $ROOTFSFLAGS /newroot
+		mount -t $rootfs -r $device $ROOTFSFLAGS /newroot || echo "Mount of rootfs failed."
 		init="$(echo "$CMDLINE" | busybox awk '/init=\// { gsub(/.*init=/,NIL,$0); gsub(/ .*/,NIL,$0); print }')"
 		if [ -z "$init" -o ! -x "/newroot$init" ]; then
 			init=/sbin/init


More information about the pld-cvs-commit mailing list