summaryrefslogtreecommitdiffstats
path: root/core/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2021-10-29 16:13:30 +0200
committerSimon Rettberg2021-10-29 16:13:30 +0200
commite0e4f3618a37d3fc9d70116568973a5492dc24ce (patch)
tree55f64abd724f1bac3d99e4617e7cdac01e0a8ed7 /core/rootfs
parent[pulseaudio] Add icons for pavucontrol, enable socket for user session (diff)
downloadmltk-e0e4f3618a37d3fc9d70116568973a5492dc24ce.tar.gz
mltk-e0e4f3618a37d3fc9d70116568973a5492dc24ce.tar.xz
mltk-e0e4f3618a37d3fc9d70116568973a5492dc24ce.zip
[rootfs-stage32] Run addon-init in parallel to ldconfig
Diffstat (limited to 'core/rootfs')
-rwxr-xr-xcore/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons11
1 files changed, 8 insertions, 3 deletions
diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons
index 91ec0d0b..e4730a46 100755
--- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons
+++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons
@@ -98,15 +98,20 @@ fi
# Run post-hook if available
if [ -x "$ADDON_MOUNT_POINT/addon-init" ]; then
- echo "Running post-append hook"
- "$ADDON_MOUNT_POINT/addon-init" || \
- slxlog --echo "addon-setup-init" "Warning: Could not execute addon-init of $ADDON"
+ {
+ echo "Running post-append hook"
+ "$ADDON_MOUNT_POINT/addon-init" \
+ || slxlog --echo "addon-setup-init" "Warning: Could not execute addon-init of $ADDON"
+ echo "post-append hook completed"
+ } &
fi
if ! grep -q -F '/opt/openslx/mnt/stage4' '/proc/mounts'; then
echo "Running ldconfig"
ldconfig 2> /dev/null || ldconfig.real 2> /dev/null
+ echo "ldconfig completed"
fi
+wait
echo "Addon initialized."
exit 0