From: Benjamin Drung Date: Fri, 27 Mar 2026 19:53:54 +0000 (+0100) Subject: fix(dracut): enable hostonly_cmdline in hostonly mode again X-Git-Tag: 111~87 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=04af3c097797;p=thirdparty%2Fdracut-ng.git fix(dracut): enable hostonly_cmdline in hostonly mode again A fresh Ubuntu 26.04 installation with a RAID 1 fails to boot due to not assembling the RAID, because it neither sets `rd.auto` nor includes the cmdline (with `rd.md.uuid` set). The documentation for `hostonly_cmdline` says: > If **hostonly="yes"** and this option is not configured, it's > automatically set to "yes". When `hostonly=yes` was made the default, `hostonly_cmdline` was not set to `yes` any more in the default case. Bug-Ubuntu: https://launchpad.net/bugs/2144948 Fixes: 24fb4c28538b ("feat(dracut): make hostonly the default") --- diff --git a/dracut.sh b/dracut.sh index cc5ad0b8c..53e4bdc99 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1138,7 +1138,7 @@ drivers_dir="${drivers_dir%"${drivers_dir##*[!/]}"}" [[ $hostonly_l ]] && hostonly=$hostonly_l [[ $hostonly_cmdline_l ]] && hostonly_cmdline=$hostonly_cmdline_l [[ $hostonly_mode_l ]] && hostonly_mode=$hostonly_mode_l -[[ ${hostonly-} == "yes" ]] && ! [[ $hostonly_cmdline ]] && hostonly_cmdline="yes" +[[ ${hostonly-} != "no" ]] && ! [[ $hostonly_cmdline ]] && hostonly_cmdline="yes" # shellcheck disable=SC2034 [[ $i18n_install_all_l ]] && i18n_install_all=$i18n_install_all_l # shellcheck disable=SC2034