]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
default to hostonly_cmdline=yes, if hostonly
authorHarald Hoyer <harald@redhat.com>
Wed, 25 Jun 2014 14:54:04 +0000 (16:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 30 Jun 2014 10:03:12 +0000 (12:03 +0200)
if hostonly_cmdline is not yet set, set it to "yes", if in hostonly
mode.

dracut.conf.d/fedora.conf.example
dracut.sh

index 147fd725021c2f7c6fdcccb052661df8975de0f1..495e8fb377fd7020003015e7a6e4dd461cb4b961 100644 (file)
@@ -13,4 +13,3 @@ systemdsystemunitdir=/usr/lib/systemd/system
 systemdsystemconfdir=/etc/systemd/system
 udevdir=/usr/lib/udev
 hostonly="yes"
-hostonly_cmdline="no"
index 04bb3398a3f93e6564d5f832c1109d1bf8ce9fd7..c6da411543893ad5429acc0bb038f61b27a39414 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -769,6 +769,7 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
 [[ $prefix = "/" ]] && unset prefix
 [[ $hostonly_l ]] && hostonly=$hostonly_l
 [[ $hostonly_cmdline_l ]] && hostonly_cmdline=$hostonly_cmdline_l
+[[ "$hostonly" == "yes" ]] && ! [[ $hostonly_cmdline ]] && hostonly_cmdline="yes"
 [[ $persistent_policy_l ]] && persistent_policy=$persistent_policy_l
 [[ $use_fstab_l ]] && use_fstab=$use_fstab_l
 [[ $mdadmconf_l ]] && mdadmconf=$mdadmconf_l