summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/loader/grub/grub.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix
index 0269b95ae1db..c46b3ba705ad 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}";
       });