summaryrefslogtreecommitdiff
path: root/modules.d/99base/dracut-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/99base/dracut-lib.sh')
-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
}