From: David Tardon Date: Thu, 1 Oct 2020 12:08:38 +0000 (+0200) Subject: dracut-install: ignore bogus preload libs X-Git-Tag: 051~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4916dfc2b94dca0e84eb7dc58a9266d02c416b4a;p=thirdparty%2Fdracut.git dracut-install: ignore bogus preload libs If there are any nonexistent libraries listed in /etc/ld.so.preload, ldd prints error messages like: ERROR: ld.so: object '/usr/lib64/libfoo.so.1' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored. This causes resolve_deps() to return error, which leads to symlinks (like usr/bin/awk) not being copied into the initrd. --- diff --git a/install/dracut-install.c b/install/dracut-install.c index 9fbd72cd6..ea0668b86 100644 --- a/install/dracut-install.c +++ b/install/dracut-install.c @@ -569,6 +569,9 @@ static int resolve_deps(const char *src) if (strstr(buf, "cannot read header")) break; + if (strstr(buf, "cannot be preloaded")) + break; + if (strstr(buf, destrootdir)) break;