]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Do generate error when hostonly_cmdline is set to "no" 251/head
authorDaniel Molkentin <dmolkentin@suse.com>
Mon, 17 Jul 2017 14:51:39 +0000 (16:51 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Mon, 17 Jul 2017 15:01:07 +0000 (17:01 +0200)
Reference: bsc#1048748

dracut.conf.5.asc
dracut.sh

index 6e1155b557dba714cfe2929142f865e9f8b0d30c..907a2fd44073ec3099e7581db4b58b209eff4b24 100644 (file)
@@ -97,7 +97,7 @@ Configuration files must have the extension .conf; other extensions are ignored.
     instead of a generic host and generate host-specific configuration.
 
 *hostonly_cmdline=*"__{yes|no}__"::
-    If set, store the kernel command line arguments needed in the initramfs
+    If set to "yes", store the kernel command line arguments needed in the initramfs
 
 *persistent_policy=*"__<policy>__"::
     Use _<policy>_ to address disks and partitions.
index 4c41379867abed447001769d63baf220c65daa75..70dc79d040a9b7d09a335ba98eeff463f360a36b 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1688,7 +1688,7 @@ if ! ( echo $PARMS_TO_STORE > $initdir/lib/dracut/build-parameter.txt ); then
     exit 1
 fi
 
-if [[ $hostonly_cmdline ]] ; then
+if [[ $hostonly_cmdline == "yes" ]] ; then
     unset _stored_cmdline
     if [ -d $initdir/etc/cmdline.d ];then
         dinfo "Stored kernel commandline:"