diff options
author | Simon Rettberg | 2021-10-29 16:13:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-10-29 16:13:30 +0200 |
commit | e0e4f3618a37d3fc9d70116568973a5492dc24ce (patch) | |
tree | 55f64abd724f1bac3d99e4617e7cdac01e0a8ed7 /core/rootfs | |
parent | [pulseaudio] Add icons for pavucontrol, enable socket for user session (diff) | |
download | mltk-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-x | core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_slx_addons | 11 |
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 |