summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-addons/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-addons/module-setup.sh')
-rwxr-xr-xmodules.d/slx-addons/module-setup.sh14
1 files changed, 5 insertions, 9 deletions
diff --git a/modules.d/slx-addons/module-setup.sh b/modules.d/slx-addons/module-setup.sh
index ed1ad89e..db186ab7 100755
--- a/modules.d/slx-addons/module-setup.sh
+++ b/modules.d/slx-addons/module-setup.sh
@@ -11,13 +11,9 @@ install() {
inst "${moddir}/services/ldconfig-stage4.service" \
"/opt/openslx/services/ldconfig-stage4.service"
# Install service that enables addons
- _name="s3-setup-addons"
- inst "$moddir/hooks/${_name}.sh" \
- "/usr/local/bin/${_name}.sh"
- inst_simple "${moddir}/services/${_name}.service" \
- "${systemdsystemunitdir}/${_name}.service"
- mkdir --parents \
- "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
- ln_r "${systemdsystemunitdir}/${_name}.service" \
- "${systemdsystemunitdir}/initrd.target.wants/${_name}.service"
+ # Order after busybox-stage4, as the addon-required check script
+ # depends on ash being available in stage4
+ slx_service "s3-setup-addons" "Enable SLX addons" \
+ --after "initrd-root-fs.target" \
+ --wafter "s3-install-busybox-stage4.service"
}