From 0ef467ba8a90b6d7cf2df3151ea5e5b242d1d817 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 13 Aug 2019 13:03:45 +0200 Subject: [slx-addons] ldconfig: --root != -r --- builder/modules.d/slx-addons/scripts/setup-addons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/modules.d/slx-addons/scripts/setup-addons.sh b/builder/modules.d/slx-addons/scripts/setup-addons.sh index c6b7f427..94c2c444 100644 --- a/builder/modules.d/slx-addons/scripts/setup-addons.sh +++ b/builder/modules.d/slx-addons/scripts/setup-addons.sh @@ -85,7 +85,7 @@ setup_addon() { if [ ! -e "$ADDON_LD_CACHE" ] || ! mv -f -- "$ADDON_LD_CACHE" "$NEWROOT/etc/ld.so.cache" ; then # Using prebuilt ld cache failed, try hard to find a ldconfig... for LDCONFIG in "$(type -p ldconfig 2>/dev/null)" "${NEWROOT}/sbin/ldconfig.real"; do - if [ -x "$LDCONFIG" ] && "$LDCONFIG" --root "$NEWROOT"; then + if [ -x "$LDCONFIG" ] && "$LDCONFIG" -r "$NEWROOT"; then return 0 fi done -- cgit v1.2.3-55-g7522