diff --git a/dracut.sh b/dracut.sh index 2cfba508..7ae5a58b 100755 --- a/dracut.sh +++ b/dracut.sh @@ -548,6 +548,7 @@ export LC_ALL=C export LANG=C unset NPATH unset LD_LIBRARY_PATH +unset LD_PRELOAD unset GREP_OPTIONS export DRACUT_LOG_LEVEL=warning diff --git a/install/dracut-install.c b/install/dracut-install.c index 397aa621..5b97cdd3 100644 --- a/install/dracut-install.c +++ b/install/dracut-install.c @@ -392,7 +392,11 @@ static int resolve_deps(const char *src) if (strstr(buf, destrootdir)) break; - p = strchr(buf, '/'); + p = strstr(buf, "=>"); + if (!p) + p = buf; + + p = strchr(p, '/'); if (p) { for (q = p; *q && *q != ' ' && *q != '\n'; q++) ; *q = '\0';