summaryrefslogtreecommitdiffstats
path: root/test/TEST-24-CRYPTSETUP
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-06-05 16:54:31 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-06-05 16:54:31 +0200
commitd7c1df84d9e9da81889e44836b054a1af94620e5 (patch)
tree472571cc762e51ecd1c6c8a83a40c04b686ab2f8 /test/TEST-24-CRYPTSETUP
parenttest: add a couple more tests for systemd-cryptsetup (diff)
downloadsystemd-d7c1df84d9e9da81889e44836b054a1af94620e5.tar.xz
systemd-d7c1df84d9e9da81889e44836b054a1af94620e5.zip
test: make sure we unmount /var late during shutdown
To avoid the "mountpoint is busy" error.
Diffstat (limited to 'test/TEST-24-CRYPTSETUP')
-rwxr-xr-xtest/TEST-24-CRYPTSETUP/test.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/TEST-24-CRYPTSETUP/test.sh b/test/TEST-24-CRYPTSETUP/test.sh
index 8ed5cf0e1b..d0ec63d870 100755
--- a/test/TEST-24-CRYPTSETUP/test.sh
+++ b/test/TEST-24-CRYPTSETUP/test.sh
@@ -13,7 +13,13 @@ TEST_FORCE_NEWIMAGE=1
PART_UUID="deadbeef-dead-dead-beef-000000000000"
DM_NAME="test24_varcrypt"
-KERNEL_APPEND+=" rd.luks=1 luks.name=$PART_UUID=$DM_NAME luks.key=$PART_UUID=/keyfile:LABEL=varcrypt_keydev"
+KERNEL_OPTIONS=(
+ "rd.luks=1"
+ "luks.name=$PART_UUID=$DM_NAME"
+ "luks.key=$PART_UUID=/keyfile:LABEL=varcrypt_keydev"
+ "luks.options=$PART_UUID=x-initrd.attach"
+)
+KERNEL_APPEND+=" ${KERNEL_OPTIONS[*]}"
QEMU_OPTIONS+=" -drive format=raw,cache=unsafe,file=${STATEDIR:?}/keydev.img"
check_result_qemu() {