contrib: dracut: install dependent kernel modules

Eliminates the need for the following workaround

> Add other drivers to dracut:

```
if grep mpt3sas /proc/modules; then
  echo 'force_drivers+=" mpt3sas "'  >> /etc/dracut.conf.d/zfs.conf
fi
if grep virtio_blk /proc/modules; then
  echo 'filesystems+=" virtio_blk "' >> /etc/dracut.conf.d/fs.conf
fi
```

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Jo Zzsi <[email protected]>
Closes #17762
This commit is contained in:
jozzsi authored and GitHub committed 2025-09-23 16:58:38 -07:00
1 parent ea37c30fcb
commit b2196fbedf
1 file changed
+1
+1
View File
@@ -17,6 +17,7 @@ depends() {
installkernel() {
hostonly='' instmods -c zfs
instmods mpt3sas virtio_blk
}
install() {