nixos/grub: Assert devices should be absolute paths

This commit is contained in:
William A. Kennington III 2014-09-04 09:15:59 -07:00
parent f73f7ccc6e
commit c6bd6d6d89

View File

@ -277,7 +277,11 @@ in
'') config.boot.loader.grub.extraFiles);
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: {
assertion = hasPrefix "/" dev;
message = "Grub devices must be absolute paths, not ${dev}";
});
})