about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2024-06-24 14:47:55 -0400
committerGitHub <noreply@github.com>2024-06-24 14:47:55 -0400
commit2893f56de08021cffd9b6b6dfc70fd9ccd51eb60 (patch)
tree315781a91aa7b1e903e095592b9a844b7aa0f89f /nixos/modules/system
parent2d8df0501051e1c7f1af7637988ef15d9ffe1d1d (diff)
parent4df3c4c17b3622c2f3f2dc8bb877ac8470efc1c6 (diff)
Merge pull request #319359 from misuzu/clevis-zfs-fix
nixos/clevis: add support for parent encrypted zfs datasets
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/clevis.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/clevis.nix b/nixos/modules/system/boot/clevis.nix
index d9390f5bc15f8..ac881e9535767 100644
--- a/nixos/modules/system/boot/clevis.nix
+++ b/nixos/modules/system/boot/clevis.nix
@@ -48,7 +48,7 @@ in
 
     assertions = (attrValues (mapAttrs
       (device: _: {
-        assertion = (any (fs: fs.device == device && (elem fs.fsType supportedFs)) config.system.build.fileSystems) || (hasAttr device config.boot.initrd.luks.devices);
+        assertion = (any (fs: fs.device == device && (elem fs.fsType supportedFs) || (fs.fsType == "zfs" && hasPrefix "${device}/" fs.device)) config.system.build.fileSystems) || (hasAttr device config.boot.initrd.luks.devices);
         message = ''
           No filesystem or LUKS device with the name ${device} is declared in your configuration.'';
       })