mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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;
|
||||
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}";
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user