mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
nixos/grub: Fix assertion
This commit is contained in:
parent
4128b474f4
commit
b07d2a447b
@ -394,7 +394,7 @@ in
|
||||
message = "Boot paths must be absolute, not ${args.path}";
|
||||
}
|
||||
{
|
||||
assertion = hasPrefix "/" args.efiSysMountPoint;
|
||||
assertion = if args.efiSysMountPoint == null then true else hasPrefix "/" args.efiSysMountPoint;
|
||||
message = "Efi paths must be absolute, not ${args.efiSysMountPoint}";
|
||||
}
|
||||
] ++ flip map args.devices (device: {
|
||||
|
Loading…
Reference in New Issue
Block a user