nixos/grub: Fix assertion

This commit is contained in:
William A. Kennington III 2015-05-25 23:03:24 -07:00
parent 4128b474f4
commit b07d2a447b

View file

@ -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: {