summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2023-11-27 18:48:24 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2023-12-13 14:35:04 +0100
commit8f764b32eabd3d39abfc0f4eaffd282223df4768 (patch)
treea5a2c5c54737aa5f869406a178b2fe8c795e0bbf
parentvarlink: improve compat with varlink C reference implementation (diff)
downloadsystemd-8f764b32eabd3d39abfc0f4eaffd282223df4768.tar.xz
systemd-8f764b32eabd3d39abfc0f4eaffd282223df4768.zip
test: Create analyze chroot with --rbind
The systemd-analyze integration test also tests chroots. It builds its chroot by bind-mounting /, but since /usr might be a separate mountpoint it should create the chroot with --rbind.
-rwxr-xr-xtest/units/testsuite-65.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/testsuite-65.sh b/test/units/testsuite-65.sh
index 6c819dfe4a..6415734651 100755
--- a/test/units/testsuite-65.sh
+++ b/test/units/testsuite-65.sh
@@ -179,7 +179,7 @@ systemd-analyze security --json=short | jq
if [[ ! -v ASAN_OPTIONS ]]; then
# check that systemd-analyze cat-config paths work in a chroot
mkdir -p /tmp/root
- mount --bind / /tmp/root
+ mount --rbind / /tmp/root
systemd-analyze cat-config systemd/system-preset >/tmp/out1
chroot /tmp/root systemd-analyze cat-config systemd/system-preset >/tmp/out2
diff /tmp/out{1,2}