]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
portable: Test pinning a single fstype on an GPT image with verity
authorRodrigo Campos <rodrigo@amutable.com>
Mon, 9 Mar 2026 13:38:54 +0000 (14:38 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Mar 2026 21:33:31 +0000 (22:33 +0100)
This tests a GPT image with a single fstype using verity. This was
broken and fixed by the previous commit.

test/units/TEST-50-DISSECT.dissect.sh

index 07e0d1a8a04884fe7ba1bc52fd88e0926ff2d1b1..7a68e62fb0067a3ca3a620cca3cb9197d8ee6393 100755 (executable)
@@ -243,6 +243,12 @@ systemd-run --wait -P \
             -p RootImagePolicy='root=signed+lol:wut=wat+signed' \
             -p MountAPIVFS=yes \
             cat /usr/lib/os-release | grep -F "MARKER=1" >/dev/null
+# A policy pinning a single fstype on a GPT image should still use verity.
+systemd-run --wait -P \
+            -p RootImage="$MINIMAL_IMAGE.gpt" \
+            -p RootImagePolicy='root=verity+squashfs' \
+            -p MountAPIVFS=yes \
+            cat /usr/lib/os-release | grep -F "MARKER=1" >/dev/null
 (! systemd-run --wait -P \
                -p RootImage="$MINIMAL_IMAGE.gpt" \
                -p RootHash="$MINIMAL_IMAGE_ROOTHASH" \