Do generate error when hostonly_cmdline is set to "no"

Reference: bsc#1048748
master
Daniel Molkentin 2017-07-17 16:51:39 +02:00
parent 3e7498ea03
commit 76dd870bfd
2 changed files with 2 additions and 2 deletions

View 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.

View File

@ -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:"