From: Daniel Molkentin Date: Mon, 17 Jul 2017 14:51:39 +0000 (+0200) Subject: Do generate error when hostonly_cmdline is set to "no" X-Git-Tag: 046~38^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F251%2Fhead;p=thirdparty%2Fdracut.git Do generate error when hostonly_cmdline is set to "no" Reference: bsc#1048748 --- diff --git a/dracut.conf.5.asc b/dracut.conf.5.asc index 6e1155b55..907a2fd44 100644 --- a/dracut.conf.5.asc +++ b/dracut.conf.5.asc @@ -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=*"____":: Use __ to address disks and partitions. diff --git a/dracut.sh b/dracut.sh index 4c4137986..70dc79d04 100755 --- 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:"