Skip to content

Commit

Permalink
make bootloader install a noop
Browse files Browse the repository at this point in the history
nixos insists on having some bootloader but we don't need one for zos microvms
  • Loading branch information
steveej committed Apr 6, 2024
1 parent 7ccfca6 commit b072dee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/flake-parts/tfgrid-microvm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ in {
"virtio_mmio"
];

boot.loader.grub.enable = true;
boot.loader.grub.enable = false;
boot.initrd.systemd.enable = false;
boot.loader.grub.device = "nodev";

boot.loader.external.enable = true;
boot.loader.external.installHook = pkgs.writeShellScript "noop" ''
exit 0
'';

services.cloud-init.enable = true;
services.cloud-init.ext4.enable = true;
Expand Down

0 comments on commit b072dee

Please sign in to comment.