From a6dd9b64070277723fac0936bc8125ccae5fc902 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sat, 25 May 2024 11:01:39 -0500 Subject: [PATCH] Update bootloader early --- hardware/shadowfax-kubevirt.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hardware/shadowfax-kubevirt.nix b/hardware/shadowfax-kubevirt.nix index 38104ed..c440e39 100644 --- a/hardware/shadowfax-kubevirt.nix +++ b/hardware/shadowfax-kubevirt.nix @@ -7,7 +7,15 @@ config = { networking.useDHCP = true; boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "virtio_gpu" ]; boot.extraModulePackages = []; + boot.loader.systemd-boot.enable = true; + # since it's a vm, we can do this on every update safely + boot.loader.efi.canTouchEfiVariables = true; + + # set console because the console defaults to serial and + # initialize the display early to get a complete log. + # this is required for typing in LUKS passwords on boot too. + boot.kernelParams = [ "console=tty" ]; }; } \ No newline at end of file