Skip to content

Commit aa79f54

Browse files
authored
nixos/iso-image: avoid collision between GRUB2 versions (#343992)
2 parents 19630aa + d979b45 commit aa79f54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos/modules/installer/cd-dvd/iso-image.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,9 +772,10 @@ in
772772
# here and it causes a cyclic dependency.
773773
boot.loader.grub.enable = false;
774774

775-
environment.systemPackages = [ grubPkgs.grub2 grubPkgs.grub2_efi ]
775+
environment.systemPackages = [ grubPkgs.grub2 ]
776776
++ lib.optional (config.isoImage.makeBiosBootable) pkgs.syslinux
777777
;
778+
system.extraDependencies = [ grubPkgs.grub2_efi ];
778779

779780
# In stage 1 of the boot, mount the CD as the root FS by label so
780781
# that we don't need to know its device. We pass the label of the

0 commit comments

Comments
 (0)