Do not assert absolute path for nodev grub device. Closes #3996
This commit is contained in:
parent
585983bc95
commit
dfa6f03ea3
|
@ -279,7 +279,7 @@ in
|
||||||
assertions = [{ assertion = !cfg.zfsSupport || cfg.version == 2;
|
assertions = [{ assertion = !cfg.zfsSupport || cfg.version == 2;
|
||||||
message = "Only grub version 2 provides zfs support";}]
|
message = "Only grub version 2 provides zfs support";}]
|
||||||
++ flip map cfg.devices (dev: {
|
++ flip map cfg.devices (dev: {
|
||||||
assertion = hasPrefix "/" dev;
|
assertion = dev == "nodev" || hasPrefix "/" dev;
|
||||||
message = "Grub devices must be absolute paths, not ${dev}";
|
message = "Grub devices must be absolute paths, not ${dev}";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue