Merge pull request #97505 from mayflower/grub-efi-mirroredboot

nixos/grub: allow multiple "nodev" devices for mirroredBoots
This commit is contained in:
Linus Heckemann 2020-12-04 18:37:50 +01:00 committed by GitHub
commit c14f14eeaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -741,7 +741,7 @@ in
+ "'boot.loader.grub.mirroredBoots' to make the system bootable.";
}
{
assertion = cfg.efiSupport || all (c: c < 2) (mapAttrsToList (_: c: c) bootDeviceCounters);
assertion = cfg.efiSupport || all (c: c < 2) (mapAttrsToList (n: c: if n == "nodev" then 0 else c) bootDeviceCounters);
message = "You cannot have duplicated devices in mirroredBoots";
}
{