diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2023-11-27 18:48:24 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2023-12-13 14:35:04 +0100 |
commit | 8f764b32eabd3d39abfc0f4eaffd282223df4768 (patch) | |
tree | a5a2c5c54737aa5f869406a178b2fe8c795e0bbf | |
parent | varlink: improve compat with varlink C reference implementation (diff) | |
download | systemd-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-x | test/units/testsuite-65.sh | 2 |
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} |