nixpkgs/nixos/modules/installer
Luflosi d979b45371
nixos/iso-image: avoid collision between GRUB2 versions
4b836fb680 added `pkgs.grub2_efi` to `environment.systemPackages` so that it would be in the Nix store and available for install. But `pkgs.grub2` is already in the list. This causes the various paths of the two GRUB2 versions to collide. To fix this, put `pkgs.grub2_efi` into `system.extraDependencies` instead. This should achieve the same effect of adding the second GRUB2 version to the Nix store without the paths colliding in the environment.

To reproduce the problem, execute `nix-build nixos -I nixos-config=nixos/modules/installer/cd-dvd/iso-image.nix -A config.system.build.isoImage` and look for messages like
```
warning: collision between `/nix/store/9jk1p9n5dl431lcm4w9p6x6x8a00dm0q-grub-2.12/bin/grub-install' and `/nix/store/809l0i6aydg4zhn3kqf723brjyp2qm8h-grub-2.12/bin/grub-install'
```
2024-09-23 17:59:26 +02:00
..
cd-dvd nixos/iso-image: avoid collision between GRUB2 versions 2024-09-23 17:59:26 +02:00
netboot installer: only use squashfs threads=multi on supported kernels 2024-09-18 17:27:20 -07:00
scan nixos/installer.scan: remove with lib; 2024-09-15 10:43:45 +02:00
sd-card fix bug where nix store DB would not be loadable if root was not mounted on / 2024-09-11 09:59:22 +02:00
tools nix: update nix-fallback-paths 2024-09-22 14:44:27 +02:00
virtualbox-demo.nix treewide: rename renamed sddm/displayManager settings 2024-04-08 21:56:38 +02:00