mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
tests zfs: don't read key from prompt
This commit is contained in:
parent
b22ebd5ecd
commit
c5a31c351e
2 changed files with 4 additions and 4 deletions
|
@ -95,9 +95,10 @@
|
|||
keyformat = "passphrase";
|
||||
keylocation = "file:///tmp/secret.key";
|
||||
};
|
||||
postCreateHook = ''
|
||||
zfs set keylocation="prompt" "zroot/$name";
|
||||
'';
|
||||
# use this to read the key during boot
|
||||
# postCreateHook = ''
|
||||
# zfs set keylocation="prompt" "zroot/$name";
|
||||
# '';
|
||||
};
|
||||
"encrypted/test" = {
|
||||
type = "zfs_fs";
|
||||
|
|
|
@ -24,7 +24,6 @@ makeDiskoTest {
|
|||
assert_property("zroot/zfs_testvolume", "volsize", "10M")
|
||||
assert_property("zroot/zfs_unmounted_fs", "mountpoint", "none")
|
||||
|
||||
assert_property("zroot/encrypted", "keylocation", "prompt")
|
||||
machine.succeed("zfs get name zroot@blank")
|
||||
|
||||
machine.succeed("mountpoint /zfs_fs");
|
||||
|
|
Loading…
Reference in a new issue