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