From dfa6f03ea3c01331f84abf2af08e77ee10a595cf Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Mon, 8 Sep 2014 12:00:34 +0200 Subject: [PATCH] Do not assert absolute path for nodev grub device. Closes #3996 --- 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 0269b95ae1d..c46b3ba705a 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -279,7 +279,7 @@ in assertions = [{ assertion = !cfg.zfsSupport || cfg.version == 2; message = "Only grub version 2 provides zfs support";}] ++ flip map cfg.devices (dev: { - assertion = hasPrefix "/" dev; + assertion = dev == "nodev" || hasPrefix "/" dev; message = "Grub devices must be absolute paths, not ${dev}"; });