summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-07-30 15:14:59 +0200
committerHarald Hoyer <harald@redhat.com>2013-07-30 15:28:46 +0200
commit549442cc2af3ba7fb674ab0a1ea962bae34efada (patch)
tree2af41d4eb786abda1ff61dc79a51f3b219d88bc4
parent98836432c11b834b7e5c82e147e0cd6e0caec1f4 (diff)
downloaddracut-549442cc2af3ba7fb674ab0a1ea962bae34efada.tar.gz
dracut-549442cc2af3ba7fb674ab0a1ea962bae34efada.tar.bz2
dracut-549442cc2af3ba7fb674ab0a1ea962bae34efada.zip
base/dracut-lib.sh: check for /proc/cmdline existance
-rwxr-xr-xmodules.d/99base/dracut-lib.sh6
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
}