mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
zfs: add tests for hooks
Note that we currently need to hardcode the pool name as it isn't exposed correctly for the subshells atm.
This commit is contained in:
parent
8891df7029
commit
9da50f9b9f
2 changed files with 7 additions and 3 deletions
|
|
@ -64,6 +64,7 @@
|
|||
"com.sun:auto-snapshot" = "false";
|
||||
};
|
||||
mountpoint = "/";
|
||||
postCreateHook = "zfs snapshot zroot@blank";
|
||||
|
||||
datasets = {
|
||||
zfs_fs = {
|
||||
|
|
@ -98,6 +99,9 @@
|
|||
keyformat = "passphrase";
|
||||
keylocation = "file:///tmp/secret.key";
|
||||
};
|
||||
postCreateHook = ''
|
||||
zfs set keylocation="prompt" "zroot/$name";
|
||||
'';
|
||||
};
|
||||
"encrypted/test" = {
|
||||
zfs_type = "filesystem";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue