diff --git a/scripts/stage1.sh b/scripts/stage1.sh index 747aec0..8ef0511 100755 --- a/scripts/stage1.sh +++ b/scripts/stage1.sh @@ -29,7 +29,7 @@ function get_deps() { # sudo rm /etc/ld.so.cache sudo ldconfig - (LD_LIBRARY_PATH="$(ldconfig -v 2>/dev/null | grep -v ^$'\t' | sed "s@^@$workdir@" | tr -d '\n'):$workdir/lib/systemd" \ + (LD_LIBRARY_PATH="$(ldconfig -v 2>/dev/null | grep -v ^$'\t' | sed "s@^@$workdir@" | cut -d':' -f1 | paste -sd':' | tr -d '\n'):$workdir/lib/systemd" \ ldd "$binary" 2>/dev/null || true) | while read -r line; do if ! echo "$line" | grep "=>" &>/dev/null; then continue