summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--builder/modules.d/slx-addons/scripts/setup-addons.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder/modules.d/slx-addons/scripts/setup-addons.sh b/builder/modules.d/slx-addons/scripts/setup-addons.sh
index 1fff2810..8232a9c7 100644
--- a/builder/modules.d/slx-addons/scripts/setup-addons.sh
+++ b/builder/modules.d/slx-addons/scripts/setup-addons.sh
@@ -90,10 +90,13 @@ done
if [ "${#active[@]}" -eq 1 ]; then
addon_cache="${NEWROOT}/opt/openslx/etc/${active[0]}.ld.so.cache"
if [ -e "$addon_cache" ]; then
+ info "Using ld.so.cache of '${active[0]}'."
+ mv -f -- "${NEWROOT}/etc/ld.so.cache"{,.stage4}
mv -f -- "$addon_cache" "${NEWROOT}/etc/ld.so.cache"
exit 0
fi
elif [ "${#active[@]}" -gt 1 ]; then
+ info "Activating ldconfig in stage4 due to multiple loaded addons: ${active[@]}"
activate_stage4_ldconfig
fi