From: Harald Hoyer Date: Thu, 20 Oct 2011 09:14:10 +0000 (+0200) Subject: 99base/dracut-lib.sh: add /etc/cmdline/*.conf parsing X-Git-Tag: 014~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2801d093829e3b87ec4c6d7054b43bad4bd59ad;p=thirdparty%2Fdracut.git 99base/dracut-lib.sh: add /etc/cmdline/*.conf parsing modules and overlay images can set default kernel command line parameters in /etc/cmdline/*.conf in the initramfs. --- diff --git a/dracut.kernel.7.xml b/dracut.kernel.7.xml index 8d50d9486..2ba05704c 100644 --- a/dracut.kernel.7.xml +++ b/dracut.kernel.7.xml @@ -1268,6 +1268,14 @@ set in the configuration files. Can contain additional command line options. + + + /etc/cmdline.d/*.conf + + + Can contain additional command line options. + + diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index 2cfaf933f..8d294ee07 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -32,6 +32,7 @@ str_replace() { _getcmdline() { local _line + local _i unset _line if [ -z "$CMDLINE" ]; then if [ -e /etc/cmdline ]; then @@ -39,8 +40,14 @@ _getcmdline() { CMDLINE_ETC="$CMDLINE_ETC $_line"; done