while read -r line; do
[[ "$line" = 'not a dynamic executable' ]] && break
- # Skip a harmless error when running the tests on a system with a significantly
- # older systemd version (ldd tries to resolve the unprefixed RPATH for libsystemd.so.0,
- # which is in this case older than the already installed libsystemd.so.0 in $initdir).
- # The issue is triggered by installing test dependencies in install_missing_libraries().
- [[ "$line" =~ libsystemd.so.*:\ version\ .*\ not\ found ]] && continue
+ # Ignore errors about our own stuff missing. This is most likely caused
+ # by ldd attempting to use the unprefixed RPATH.
+ [[ "$line" =~ libsystemd.*\ not\ found ]] && continue
if [[ "$line" =~ $so_regex ]]; then
file="${BASH_REMATCH[1]}"
# In certain cases we might attempt to install a binary which is already
# present in the test image, yet it's missing from the host system.
# In such cases, let's check if the binary indeed exists in the image
- # before doing any other chcecks. If it does, immediately return with
+ # before doing any other checks. If it does, immediately return with
# success.
if [[ $# -eq 1 ]]; then
for path in "" bin sbin usr/bin usr/sbin; do
while read -r line; do
[[ "$line" = 'not a dynamic executable' ]] && break
+ # Ignore errors about our own stuff missing. This is most likely caused
+ # by ldd attempting to use the unprefixed RPATH.
+ [[ "$line" =~ libsystemd.*\ not\ found ]] && continue
+
if [[ "$line" =~ $so_regex ]]; then
file="${BASH_REMATCH[1]}"
[[ -e "${initdir}/$file" ]] && continue