From 2e38c56c73b06e4e031535ad2dccbb6d065fbadd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 25 Jan 2026 20:49:14 +0100 Subject: [PATCH] test: perform /usr/share/ sysext unmount lazily /usr/share/ is a directory commonly accessed by various tools, hence we really should make sure we umount it lazily (MNT_DETACH), since otherwise there's a good chance that the umount might simply fail. I noticed this there: https://github.com/systemd/systemd/actions/runs/21321690161/job/61372465563?pr=40446 --- test/units/TEST-50-DISSECT.sysext.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/units/TEST-50-DISSECT.sysext.sh b/test/units/TEST-50-DISSECT.sysext.sh index 866e932f16c..26bec15351b 100755 --- a/test/units/TEST-50-DISSECT.sysext.sh +++ b/test/units/TEST-50-DISSECT.sysext.sh @@ -1328,13 +1328,13 @@ test -f /usr/lib/systemd/system/some_file mountpoint /usr/share touch /tmp/foo/abc test -f /usr/share/abc -umount /usr/share +umount -l /usr/share test ! -f /usr/share/abc mount --bind /tmp/foo /usr/share systemd-sysext unmerge test ! -f /usr/lib/systemd/system/some_file mountpoint /usr/share -umount /usr/share +umount -l /usr/share rm -f /var/lib/extensions/app0.raw exit 0 -- 2.47.3