From 3405c9da339104c197a4eb74f72384916f2d5c1e Mon Sep 17 00:00:00 2001 From: Nick Rosbrook Date: Wed, 10 Jun 2026 15:26:47 -0400 Subject: [PATCH] mkosi: copy packaged test-fdstore if not built locally On Ubuntu autopkgtest, TEST-91-LIVEUPDATE fails because test-fdstore is not found in the dummy container. --- mkosi/mkosi.images/minimal-base/mkosi.postinst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkosi/mkosi.images/minimal-base/mkosi.postinst b/mkosi/mkosi.images/minimal-base/mkosi.postinst index ba3f4aec31..7cb50ad97f 100755 --- a/mkosi/mkosi.images/minimal-base/mkosi.postinst +++ b/mkosi/mkosi.images/minimal-base/mkosi.postinst @@ -20,4 +20,8 @@ fi # For use in the minimal containers, only needs libsystemd and libc if [[ -x "$BUILDDIR/test-fdstore" ]]; then cp "$BUILDDIR/test-fdstore" "$BUILDROOT/usr/bin/test-fdstore" +elif [[ -x "$BUILDROOT/usr/lib/systemd/tests/unit-tests/manual/test-fdstore" ]]; then + cp "$BUILDROOT/usr/lib/systemd/tests/unit-tests/manual/test-fdstore" "$BUILDROOT/usr/bin/test-fdstore" +elif [[ -x /usr/lib/systemd/tests/unit-tests/manual/test-fdstore ]]; then + cp /usr/lib/systemd/tests/unit-tests/manual/test-fdstore "$BUILDROOT/usr/bin/test-fdstore" fi