mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +01:00
tests zfs: don't read key from prompt
This commit is contained in:
1 parent
b22ebd5ecd
commit
c5a31c351e
2 files changed
+4
-4
No files matched your search
+4
-3
@@ -95,9 +95,10 @@
|
|||||||
keyformat = "passphrase";
|
keyformat = "passphrase";
|
||||||
keylocation = "file:///tmp/secret.key";
|
keylocation = "file:///tmp/secret.key";
|
||||||
};
|
};
|
||||||
postCreateHook = ''
|
# use this to read the key during boot
|
||||||
zfs set keylocation="prompt" "zroot/$name";
|
# postCreateHook = ''
|
||||||
'';
|
# zfs set keylocation="prompt" "zroot/$name";
|
||||||
|
# '';
|
||||||
};
|
};
|
||||||
"encrypted/test" = {
|
"encrypted/test" = {
|
||||||
type = "zfs_fs";
|
type = "zfs_fs";
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ makeDiskoTest {
|
|||||||
assert_property("zroot/zfs_testvolume", "volsize", "10M")
|
assert_property("zroot/zfs_testvolume", "volsize", "10M")
|
||||||
assert_property("zroot/zfs_unmounted_fs", "mountpoint", "none")
|
assert_property("zroot/zfs_unmounted_fs", "mountpoint", "none")
|
||||||
|
|
||||||
assert_property("zroot/encrypted", "keylocation", "prompt")
|
|
||||||
machine.succeed("zfs get name zroot@blank")
|
machine.succeed("zfs get name zroot@blank")
|
||||||
|
|
||||||
machine.succeed("mountpoint /zfs_fs");
|
machine.succeed("mountpoint /zfs_fs");
|
||||||
|
|||||||
Reference in new issue
Block a user