This patch adds all the kernel modules that might be needed by LVM, to avoid
having to rebuild the initrd in hostonly mode after a dynamic change that
requires new drivers to boot.
For example, LVM allows to dynamically convert a linear logical volume to a
RAID-1 type (`lvconvert --type raid1 vg/lv`), which, in hostonly mode, will
require the user to manually rebuild the initrd again to include the new RAID
drivers in use, otherwise the system will fail to boot.
}
installkernel() {
- hostonly='' instmods dm-snapshot
+ hostonly='' dracut_instmods -o -P ".*/(bcache/|md-cluster).*" "=drivers/md"
}
# called by dracut