nixos/make-disk-image: add ability to defer bootloader install until image has been flashed

obadz 760b2b90 f9c3076e

+4 -1
+4 -1
nixos/lib/make-disk-image.nix
··· 12 # directly. 13 partitioned ? true 14 15 , # The root file system type. 16 fsType ? "ext4" 17 ··· 108 # Generate the GRUB menu. 109 ln -s vda /dev/xvda 110 ln -s vda /dev/sda 111 - chroot /mnt ${config.system.build.toplevel}/bin/switch-to-configuration boot 112 113 umount /mnt/proc /mnt/dev /mnt/sys 114 umount /mnt
··· 12 # directly. 13 partitioned ? true 14 15 + # Whether to invoke switch-to-configuration boot during image creation 16 + , installBootLoader ? true 17 + 18 , # The root file system type. 19 fsType ? "ext4" 20 ··· 111 # Generate the GRUB menu. 112 ln -s vda /dev/xvda 113 ln -s vda /dev/sda 114 + ${optionalString installBootLoader "chroot /mnt ${config.system.build.toplevel}/bin/switch-to-configuration boot"} 115 116 umount /mnt/proc /mnt/dev /mnt/sys 117 umount /mnt