zfs: run load-key on mount

This commit is contained in:
Jörg Thalheim committed 2024-12-20 14:24:53 +01:00
1 parent 60375cf096
commit d8f3cfc582
5 files changed
+64 -25

No files matched your search

+15 -1
View File
@@ -72,7 +72,7 @@
options.mountpoint = "legacy";
mountpoint = "/zfs_legacy_fs";
};
zfs_testvolume = {
zfs_volume = {
type = "zfs_volume";
size = "10M";
content = {
@@ -81,6 +81,20 @@
mountpoint = "/ext4onzfs";
};
};
zfs_encryptedvolume = {
type = "zfs_volume";
size = "10M";
options = {
encryption = "aes-256-gcm";
keyformat = "passphrase";
keylocation = "file:///tmp/secret.key";
};
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/ext4onzfsencrypted";
};
};
encrypted = {
type = "zfs_fs";
options = {