Do not assert absolute path for nodev grub device. Closes #3996

This commit is contained in:
Luca Bruno 2014-09-08 12:00:34 +02:00
parent 585983bc95
commit dfa6f03ea3

View File

@ -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}";
});