diff options
author | Luca Bruno <luca.bruno@immobiliare.it> | 2014-09-08 12:00:34 +0200 |
---|---|---|
committer | Luca Bruno <luca.bruno@immobiliare.it> | 2014-09-08 12:00:34 +0200 |
commit | dfa6f03ea3c01331f84abf2af08e77ee10a595cf (patch) | |
tree | 12c29a636759aa0fb05a173aa8cb82b23e5b5b82 /nixos/modules/system | |
parent | 585983bc954d043d40a14b29c0bddca42bb9cdfb (diff) | |
download | nixlib-dfa6f03ea3c01331f84abf2af08e77ee10a595cf.tar nixlib-dfa6f03ea3c01331f84abf2af08e77ee10a595cf.tar.gz nixlib-dfa6f03ea3c01331f84abf2af08e77ee10a595cf.tar.bz2 nixlib-dfa6f03ea3c01331f84abf2af08e77ee10a595cf.tar.lz nixlib-dfa6f03ea3c01331f84abf2af08e77ee10a595cf.tar.xz nixlib-dfa6f03ea3c01331f84abf2af08e77ee10a595cf.tar.zst nixlib-dfa6f03ea3c01331f84abf2af08e77ee10a595cf.zip |
Do not assert absolute path for nodev grub device. Closes #3996
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/loader/grub/grub.nix | 2 |
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}"; }); |