checkfstab: dracut doesn't set CMDLINE.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 31 Jul 2010 15:27:05 +0000 (17:27 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 31 Jul 2010 15:27:05 +0000 (17:27 +0200)
src/initscripts/init.d/checkfstab

index c216da6..c9fa2bc 100644 (file)
@@ -18,6 +18,7 @@
 case "${1}" in
        start)
                boot_mesg "Checking fstab bootdevice ..."
+               read CMDLINE < /proc/cmdline
                ROOTPOS=`expr index "$CMDLINE" root=`
                NEWROOT=`echo ${CMDLINE:$ROOTPOS} | cut -d"=" -f2 | cut -d" " -f1`;
                OLDBOOT=`cat /etc/fstab | grep -m1 "/boot" | cut -d" " -f1 | cut -f1`;