summaryrefslogtreecommitdiffstats
path: root/builder
diff options
context:
space:
mode:
authorJonathan Bauer2019-08-13 13:03:45 +0200
committerJonathan Bauer2019-08-13 13:03:45 +0200
commit0ef467ba8a90b6d7cf2df3151ea5e5b242d1d817 (patch)
tree2ff2113ee63c3d97f87b3b776c2d0c4fa37eb775 /builder
parent[slx-addons] refine ldconfig calls (diff)
downloadsystemd-init-0ef467ba8a90b6d7cf2df3151ea5e5b242d1d817.tar.gz
systemd-init-0ef467ba8a90b6d7cf2df3151ea5e5b242d1d817.tar.xz
systemd-init-0ef467ba8a90b6d7cf2df3151ea5e5b242d1d817.zip
[slx-addons] ldconfig: --root != -r
Diffstat (limited to 'builder')
-rw-r--r--builder/modules.d/slx-addons/scripts/setup-addons.sh2
1 files changed, 1 insertions, 1 deletions
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