Merge pull request #97505 from mayflower/grub-efi-mirroredboot
nixos/grub: allow multiple "nodev" devices for mirroredBoots
This commit is contained in:
commit
c14f14eeaf
@ -741,7 +741,7 @@ in
|
|||||||
+ "'boot.loader.grub.mirroredBoots' to make the system bootable.";
|
+ "'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";
|
message = "You cannot have duplicated devices in mirroredBoots";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user