about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorYang, Bo <bo@gradient.ai>2023-11-15 17:29:57 -0800
committerJörg Thalheim <Mic92@users.noreply.github.com>2023-11-18 13:37:42 +0100
commit6d69feb35edd13edaf7496d460e46ad36e63ed36 (patch)
tree18b8f4ca5b2da0379ea6680d1819b9de8a210c59 /nixos
parent67f1e6206a040386a88dd3dc41dc4024926fee41 (diff)
downloadnixlib-6d69feb35edd13edaf7496d460e46ad36e63ed36.tar
nixlib-6d69feb35edd13edaf7496d460e46ad36e63ed36.tar.gz
nixlib-6d69feb35edd13edaf7496d460e46ad36e63ed36.tar.bz2
nixlib-6d69feb35edd13edaf7496d460e46ad36e63ed36.tar.lz
nixlib-6d69feb35edd13edaf7496d460e46ad36e63ed36.tar.xz
nixlib-6d69feb35edd13edaf7496d460e46ad36e63ed36.tar.zst
nixlib-6d69feb35edd13edaf7496d460e46ad36e63ed36.zip
google-compute-image: add the missing /boot filesystem
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/google-compute-image.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/google-compute-image.nix b/nixos/modules/virtualisation/google-compute-image.nix
index dcdd1b59eef5..e4a18fd81d71 100644
--- a/nixos/modules/virtualisation/google-compute-image.nix
+++ b/nixos/modules/virtualisation/google-compute-image.nix
@@ -56,6 +56,11 @@ in
       efiInstallAsRemovable = true;
     };
 
+    fileSystems."/boot" = mkIf cfg.efi {
+      device = "/dev/disk/by-label/ESP";
+      fsType = "vfat";
+    };
+
     system.build.googleComputeImage = import ../../lib/make-disk-image.nix {
       name = "google-compute-image";
       postVM = ''