]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: copy packaged test-fdstore if not built locally
authorNick Rosbrook <enr0n@ubuntu.com>
Wed, 10 Jun 2026 19:26:47 +0000 (15:26 -0400)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 19 Jun 2026 17:35:15 +0000 (18:35 +0100)
On Ubuntu autopkgtest, TEST-91-LIVEUPDATE fails because test-fdstore is
not found in the dummy container.

mkosi/mkosi.images/minimal-base/mkosi.postinst

index ba3f4aec31d425450ef0697c30f6e6ea6596b501..7cb50ad97f4e50a0d2528e1d12056d789d65b3c8 100755 (executable)
@@ -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