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}";
|
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}";
|
message = "Efi paths must be absolute, not ${args.efiSysMountPoint}";
|
||||||
}
|
}
|
||||||
] ++ flip map args.devices (device: {
|
] ++ flip map args.devices (device: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user