From c5a31c351ed87fa2ff83ce7416c02a798b9ae1cd Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 11 Jul 2023 09:29:28 +0200 Subject: [PATCH] tests zfs: don't read key from prompt --- example/zfs.nix | 7 ++++--- tests/zfs.nix | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/zfs.nix b/example/zfs.nix index f5db396..d1189f5 100644 --- a/example/zfs.nix +++ b/example/zfs.nix @@ -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"; diff --git a/tests/zfs.nix b/tests/zfs.nix index 04eee4b..5b6d7a9 100644 --- a/tests/zfs.nix +++ b/tests/zfs.nix @@ -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");