Skip to content

Commit

Permalink
feat(lvm): always include all drivers that LVM can use
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aafeijoo-suse committed Jan 27, 2023
1 parent 1aafcab commit a109c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/90lvm/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ cmdline() {
}

installkernel() {
hostonly='' instmods dm-snapshot
hostonly='' dracut_instmods -o -P ".*/(bcache/|md-cluster).*" "=drivers/md"
}

# called by dracut
Expand Down

0 comments on commit a109c61

Please sign in to comment.