diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-06-16 06:01:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 06:01:09 +0000 |
commit | af7beed7bea693d35ec652a29e95e0ddc6fe4ec6 (patch) | |
tree | 295ec532e202172a6f05501511a4989a2bcedc89 /nixos | |
parent | 839c033ffbbaf67c74447fcfb0dc50f7ad5cd85a (diff) | |
parent | 3bbd1772d6ff6c699e551c1cd367200784aaa8a9 (diff) |
Merge master into staging-next
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/tasks/filesystems/zfs.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 16dc0c44c18d..f18ab10bafd7 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -523,6 +523,15 @@ in assertion = cfgZfs.allowHibernation -> !cfgZfs.forceImportRoot && !cfgZfs.forceImportAll; message = "boot.zfs.allowHibernation while force importing is enabled will cause data corruption"; } + { + assertion = !(elem "" allPools); + message = '' + Automatic pool detection found an empty pool name, which can't be used. + Hint: for `fileSystems` entries with `fsType = zfs`, the `device` attribute + should be a zfs dataset name, like `device = "pool/data/set"`. + This error can be triggered by using an absolute path, such as `"/dev/disk/..."`. + ''; + } ]; boot = { |