From: Jo Zzsi Date: Sat, 24 May 2025 01:56:56 +0000 (-0400) Subject: fix: load essential storage kernel modules in sloppy hostonly mode X-Git-Tag: 108~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8730476;p=thirdparty%2Fdracut-ng.git fix: load essential storage kernel modules in sloppy hostonly mode Essential storage kernel modules (e.g. sd_mod) should be always included unless hostonly_mode is set to strict. This PR installs even more drivers in hostonly sloppy mode as a follow-up to 8519dcd . Fixes: https://github.com/dracut-ng/dracut-ng/issues/748 --- diff --git a/modules.d/70kernel-modules/module-setup.sh b/modules.d/70kernel-modules/module-setup.sh index ad0d4ab7f..e4bfaf6e9 100755 --- a/modules.d/70kernel-modules/module-setup.sh +++ b/modules.d/70kernel-modules/module-setup.sh @@ -107,9 +107,9 @@ installkernel() { awk -F: '/^\// {print $1}' "$srcmods/modules.dep" 2> /dev/null | instmods - # if not on hostonly mode, or there are hostonly block device + # if not on strict hostonly mode, or there are hostonly block device # install block drivers - if ! [[ ${hostonly-} ]] \ + if [[ $hostonly_mode != "strict" ]] \ || for_each_host_dev_and_slaves_all record_block_dev_drv; then hostonly='' instmods sg sr_mod sd_mod scsi_dh ata_piix