diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-24 07:45:34 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-24 07:45:34 -0600 |
| commit | 213bc3017ac3dff0cbf9e7bfec538bd1db12e620 (patch) | |
| tree | e4c3553cdb41409f5f0c90aea21dd5d99c3f34e8 /scripts/test-configs | |
| parent | 8feac7b730ffd0b38b5285b53c5a942f49822580 (diff) | |
| download | archangel-213bc3017ac3dff0cbf9e7bfec538bd1db12e620.tar.gz archangel-213bc3017ac3dff0cbf9e7bfec538bd1db12e620.zip | |
feat: add ZFS encrypted volume tests (single disk + mirror)
Add automated tests for ZFS native encryption, matching existing Btrfs
LUKS test coverage. ZFS encrypted boot requires two passphrase entries
(ZFSBootMenu + mkinitcpio zfs hook), both sent via QEMU monitor sendkey
with timed delays since ZFSBootMenu renders to VGA, not serial.
Diffstat (limited to 'scripts/test-configs')
| -rw-r--r-- | scripts/test-configs/zfs-encrypt.conf | 16 | ||||
| -rw-r--r-- | scripts/test-configs/zfs-mirror-encrypt.conf | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/scripts/test-configs/zfs-encrypt.conf b/scripts/test-configs/zfs-encrypt.conf new file mode 100644 index 0000000..0bc3237 --- /dev/null +++ b/scripts/test-configs/zfs-encrypt.conf @@ -0,0 +1,16 @@ +# Test config: ZFS single disk with native encryption + +# Enable testing mode for automated ZFS passphrase handling +TESTING=yes + +HOSTNAME=test-zfs-encrypt +TIMEZONE=UTC +LOCALE=en_US.UTF-8 +KEYMAP=us + +DISKS=/dev/vda + +ZFS_PASSPHRASE=testpass +ROOT_PASSWORD=testpass + +ENABLE_SSH=yes diff --git a/scripts/test-configs/zfs-mirror-encrypt.conf b/scripts/test-configs/zfs-mirror-encrypt.conf new file mode 100644 index 0000000..0f0efab --- /dev/null +++ b/scripts/test-configs/zfs-mirror-encrypt.conf @@ -0,0 +1,17 @@ +# Test config: ZFS 2-disk mirror with native encryption + +# Enable testing mode for automated ZFS passphrase handling +TESTING=yes + +HOSTNAME=test-zfs-mirror-encrypt +TIMEZONE=UTC +LOCALE=en_US.UTF-8 +KEYMAP=us + +DISKS=/dev/vda,/dev/vdb +RAID_LEVEL=mirror + +ZFS_PASSPHRASE=testpass +ROOT_PASSWORD=testpass + +ENABLE_SSH=yes |
