From 2d80dcfe758acebbf61ec63ae1287960329de45b Mon Sep 17 00:00:00 2001 From: Palash Gandhi Date: Mon, 18 Nov 2024 10:01:03 -0800 Subject: [PATCH] DLPX-92722 recovery-environment fails to build on 24.04 due to erroneous path PR URL: https://www.github.com/delphix/recovery-environment/pull/44 --- scripts/stage1.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/stage1.sh b/scripts/stage1.sh index 747aec0..d79dc10 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/usr/lib/x86_64-linux-gnu/systemd" \ ldd "$binary" 2>/dev/null || true) | while read -r line; do if ! echo "$line" | grep "=>" &>/dev/null; then continue @@ -64,6 +64,7 @@ PACKAGES="dropbear-bin \ busybox-static \ kmod \ systemd \ + systemd-resolved \ udev \ libssl1.1 \ nginx-extras"