host_001_momo_koeln: fix initrd kernelModules
boot.initrd.kernelModules overrides boot.initrd.availableKernelModules and forces the initrd to load only those modules. This leads to the host being unbootable in this case because of missing required modules. availableKernelModules is the correct place for desired modules. This got fixed during a debugging session of hensoko and teutat3s, but not implemented in nix code until now.
This commit is contained in:
parent
2692b2dc20
commit
db53f9f1be
|
@ -14,8 +14,8 @@
|
||||||
# Define on which hard drive you want to install Grub.
|
# Define on which hard drive you want to install Grub.
|
||||||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod"];
|
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" "dm-snapshot"];
|
||||||
boot.initrd.kernelModules = ["dm-snapshot"];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = ["kvm-intel"];
|
boot.kernelModules = ["kvm-intel"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue