Merge pull request #97505 from mayflower/grub-efi-mirroredboot
nixos/grub: allow multiple "nodev" devices for mirroredBoots
commitc14f14eeaf919c914e4dec2ce485a5bdc8dd4fec
authorLinus Heckemann <git@sphalerite.org>
dateFri 4 Dec 2020, 18:37 (6 years ago)
parent29566cafdd9445
nixos/modules/system/boot/loader/grub/grub.nix+1−1
@@ -741,7 +741,7 @@ in
741741 + "'boot.loader.grub.mirroredBoots' to make the system bootable.";
742742 }
743743 {
744− assertion = cfg.efiSupport || all (c: c < 2) (mapAttrsToList (_: c: c) bootDeviceCounters);
744+ assertion = cfg.efiSupport || all (c: c < 2) (mapAttrsToList (n: c: if n == "nodev" then 0 else c) bootDeviceCounters);
745745 message = "You cannot have duplicated devices in mirroredBoots";
746746 }
747747 {