From d3d0e8ef4035b7a397ed623a97604679bfd00c47 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 25 Jan 2026 07:36:24 -0600 Subject: Add LUKS testing infrastructure and documentation - Add setup_luks_testing_keyfile() for automated LUKS testing - Modify configure_crypttab() and configure_luks_initramfs() for keyfile support - Fix configure_btrfs_initramfs() to preserve encrypt hook when LUKS enabled - Add TESTING=yes to LUKS test configs - Create docs/TESTING-STRATEGY.org documenting testing approach LUKS automated reboot testing remains a work-in-progress due to complexity of sending passphrase to initramfs encrypt hook. Non-LUKS tests all pass: btrfs-single, btrfs-mirror, btrfs-stripe. --- scripts/test-configs/btrfs-luks.conf | 3 +++ scripts/test-configs/btrfs-mirror-luks.conf | 3 +++ 2 files changed, 6 insertions(+) (limited to 'scripts') diff --git a/scripts/test-configs/btrfs-luks.conf b/scripts/test-configs/btrfs-luks.conf index 5eee46d..7980840 100644 --- a/scripts/test-configs/btrfs-luks.conf +++ b/scripts/test-configs/btrfs-luks.conf @@ -1,5 +1,8 @@ # Test config: Btrfs single disk with LUKS encryption +# Enable testing mode for automated LUKS passphrase handling +TESTING=yes + HOSTNAME=test-btrfs-luks TIMEZONE=UTC LOCALE=en_US.UTF-8 diff --git a/scripts/test-configs/btrfs-mirror-luks.conf b/scripts/test-configs/btrfs-mirror-luks.conf index 823dfbb..2cf0737 100644 --- a/scripts/test-configs/btrfs-mirror-luks.conf +++ b/scripts/test-configs/btrfs-mirror-luks.conf @@ -1,5 +1,8 @@ # Test config: Btrfs 2-disk mirror (RAID1) with LUKS encryption +# Enable testing mode for automated LUKS passphrase handling +TESTING=yes + HOSTNAME=test-btrfs-mirror-luks TIMEZONE=UTC LOCALE=en_US.UTF-8 -- cgit v1.2.3