summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/TEST-13-NSPAWN.nspawn.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/units/TEST-13-NSPAWN.nspawn.sh b/test/units/TEST-13-NSPAWN.nspawn.sh
index ad11468886..7c21825d63 100755
--- a/test/units/TEST-13-NSPAWN.nspawn.sh
+++ b/test/units/TEST-13-NSPAWN.nspawn.sh
@@ -969,6 +969,11 @@ testcase_check_os_release() {
--bind-ro="$base/usr:/usr"
)
+ # Might be needed to find libraries
+ if [ -f "$base/etc/ld.so.cache" ]; then
+ common_opts+=("--bind-ro=$base/etc/ld.so.cache:/etc/ld.so.cache")
+ fi
+
# Empty /etc/ & /usr/
(! systemd-nspawn "${common_opts[@]}")
(! SYSTEMD_NSPAWN_CHECK_OS_RELEASE=1 systemd-nspawn "${common_opts[@]}")