diff options
author | Harald Hoyer <harald@redhat.com> | 2013-07-30 15:14:59 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-07-30 15:28:46 +0200 |
commit | 549442cc2af3ba7fb674ab0a1ea962bae34efada (patch) | |
tree | 2af41d4eb786abda1ff61dc79a51f3b219d88bc4 /modules.d | |
parent | 98836432c11b834b7e5c82e147e0cd6e0caec1f4 (diff) | |
download | dracut-549442cc2af3ba7fb674ab0a1ea962bae34efada.tar.gz dracut-549442cc2af3ba7fb674ab0a1ea962bae34efada.tar.bz2 dracut-549442cc2af3ba7fb674ab0a1ea962bae34efada.zip |
base/dracut-lib.sh: check for /proc/cmdline existance
Diffstat (limited to 'modules.d')
-rwxr-xr-x | modules.d/99base/dracut-lib.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index 2361ee3c..9e49a9c6 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -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 } |