nixpkgs/nixos/modules/installer/cd-dvd
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
..
channel.nix installer/cd-dvd/channel: allow to disable bundled channel 2023-11-02 12:39:05 +01:00
installation-cd-base.nix nixos/iso-image: remove with lib; 2024-09-15 10:43:45 +02:00
installation-cd-graphical-base.nix nixos/installation-cd-graphical-base: remove with lib; 2024-09-15 10:43:45 +02:00
installation-cd-graphical-calamares-gnome.nix gnome-settings-daemon{,43}: Move from gnome scope to top-level 2024-09-01 14:16:31 +02:00
installation-cd-graphical-calamares-plasma5.nix nixos/installation-cd-plasma5: fix even more aliases 2024-06-03 16:26:54 +02:00
installation-cd-graphical-calamares-plasma6.nix treewide: rename renamed sddm/displayManager settings 2024-04-08 21:56:38 +02:00
installation-cd-graphical-calamares.nix installation-cd: Remove libsForQt5.full 2022-11-19 19:12:37 -05:00
installation-cd-graphical-gnome.nix treewide: rename renamed sddm/displayManager settings 2024-04-08 21:56:38 +02:00
installation-cd-graphical-plasma5-new-kernel.nix
installation-cd-graphical-plasma5.nix nixos/installation-cd-plasma5: fix even more aliases 2024-06-03 16:26:54 +02:00
installation-cd-minimal-new-kernel-no-zfs.nix nixos/filesystems: make supportedFilesystems an attrset 2024-02-19 11:46:52 +01:00
installation-cd-minimal-new-kernel.nix
installation-cd-minimal.nix nixos/profiles/minimal: drop noXLibs 2024-09-14 00:59:14 +02:00
iso-image.nix nixos/iso-image: avoid collision between GRUB2 versions 2024-09-23 17:59:26 +02:00
sd-image-aarch64-new-kernel.nix
sd-image-aarch64.nix
sd-image-armv7l-multiplatform.nix
sd-image-raspberrypi.nix
sd-image.nix