From: Lennart Poettering Date: Mon, 29 Sep 2025 08:45:14 +0000 (+0200) Subject: test: make sure TEST-50-DISSECT.mountfsd.sh can run standalone X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F39168%2Fhead;p=thirdparty%2Fsystemd.git test: make sure TEST-50-DISSECT.mountfsd.sh can run standalone --- diff --git a/test/units/TEST-50-DISSECT.mountfsd.sh b/test/units/TEST-50-DISSECT.mountfsd.sh index 067ed238e8c..d2ce67714ad 100755 --- a/test/units/TEST-50-DISSECT.mountfsd.sh +++ b/test/units/TEST-50-DISSECT.mountfsd.sh @@ -60,14 +60,21 @@ if (SYSTEMD_LOG_TARGET=console varlinkctl call \ exit 0 fi +# This should work without the key +systemd-dissect --image-policy='root=verity:=absent+unused' --mtree /var/tmp/unpriv.raw >/dev/null +systemd-dissect --image-policy='root=verity+signed:=absent+unused' --mtree /var/tmp/unpriv.raw >/dev/null + # This should fail before we install the key (! systemd-dissect --image-policy='root=signed:=absent+unused' --mtree /var/tmp/unpriv.raw >/dev/null) # Install key in keychain -cp /tmp/test-50-unpriv-cert.crt /run/verity.d +mkdir -p /run/verity.d +cp /tmp/test-50-unpriv-cert.crt /run/verity.d/ # This should work now systemd-dissect --image-policy='root=signed:=absent+unused' --mtree /var/tmp/unpriv.raw >/dev/null + +# This should still work systemd-dissect --image-policy='root=verity:=absent+unused' --mtree /var/tmp/unpriv.raw >/dev/null systemd-dissect --image-policy='root=verity+signed:=absent+unused' --mtree /var/tmp/unpriv.raw >/dev/null