From b07d2a447b3a95bba0887c360353eac68f156aa4 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Mon, 25 May 2015 23:03:24 -0700 Subject: [PATCH] nixos/grub: Fix assertion --- nixos/modules/system/boot/loader/grub/grub.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index e64c41b7f48..c790e05f51b 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -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: {