]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
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 c216da6f6edc2db2350506c8785f5aeec4cc2fbb..c9fa2bc75130f344c0af16d96740e62eab77b8bd 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`;