base/dracut-lib.sh: check for /proc/cmdline existance

master
Harald Hoyer 2013-07-30 15:14:59 +02:00
parent 98836432c1
commit 549442cc2a
1 changed files with 4 additions and 2 deletions

View File

@ -77,8 +77,10 @@ _getcmdline() {
CMDLINE_ETC_D="$CMDLINE_ETC_D $_line";
done <"$_i";
done
read -r CMDLINE </proc/cmdline;
CMDLINE="$CMDLINE_ETC_D $CMDLINE_ETC $CMDLINE"
if [ -e /proc/cmdline ]; then
read -r CMDLINE </proc/cmdline;
CMDLINE="$CMDLINE_ETC_D $CMDLINE_ETC $CMDLINE"
fi
fi
}