checkfstab: dracut doesn't set CMDLINE.

This commit is contained in:
Arne Fitzenreiter
2010-07-31 17:27:05 +02:00
parent 953d72838a
commit 03f0aa268f

View 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`;