diff options
| author | tv <tv@krebsco.de> | 2026-11-15 22:13:10 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-15 22:13:10 +0000 |
| commit | 0eba74df49cec656a6d84fd923e50c5b2d1a4566 (patch) | |
| tree | f28cbf3ba9a13960fc3f90a5ffc66a7678e981b3 /default.nix | |
| parent | 849c4fc13ed8e9691214f238e38eda93ce154892 (diff) | |
add optional cut-down guest kernel
kernel.nix builds Linux 6.18 with Firecracker's recommended guest
configuration (resources/guest_configs/microvm-kernel-ci-x86_64-6.18.config),
plus erofs as a module. Use it with
nix-build --arg kernelPackages 'import ./kernel.nix {}'
Everything Firecracker needs is built in, so NixOS' default initrd
modules (ahci, efivarfs, ...) don't exist; allowMissingModules lets the
initrd build anyway.
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 5e250fd..ffc9293 100644 --- a/default.nix +++ b/default.nix @@ -11,6 +11,7 @@ let boot.loader.grub.enable = false; boot.kernelPackages = kernelPackages; + boot.initrd.allowMissingModules = true; # e.g. ahci, efivarfs with a cut-down kernel boot.initrd.kernelModules = [ "virtio_mmio" "virtio_blk" "erofs" ]; boot.kernelParams = [ "console=ttyS0" "reboot=k" "panic=1" |
