From 30f6c80d7a877c822e558b30b9c51f4edb4c6e23 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 25 Jun 2014 16:54:04 +0200 Subject: [PATCH] default to hostonly_cmdline=yes, if hostonly if hostonly_cmdline is not yet set, set it to "yes", if in hostonly mode. --- dracut.conf.d/fedora.conf.example | 1 - dracut.sh | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut.conf.d/fedora.conf.example b/dracut.conf.d/fedora.conf.example index 147fd7250..495e8fb37 100644 --- a/dracut.conf.d/fedora.conf.example +++ b/dracut.conf.d/fedora.conf.example @@ -13,4 +13,3 @@ systemdsystemunitdir=/usr/lib/systemd/system systemdsystemconfdir=/etc/systemd/system udevdir=/usr/lib/udev hostonly="yes" -hostonly_cmdline="no" diff --git a/dracut.sh b/dracut.sh index 04bb3398a..c6da41154 100755 --- 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 -- 2.47.3