summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-addons/module-setup.sh
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-25 15:47:09 +0100
committerSimon Rettberg2024-01-29 09:53:08 +0100
commitabb148916593de63554ef58c53cb1dd8fbbb0ab1 (patch)
treed8c640c33f699f3abc567d9bbf111190c779b7d2 /modules.d/slx-addons/module-setup.sh
parent[dnbd3-rootfs] Try optimized ext4 mount options if none are given (diff)
downloadsystemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.tar.gz
systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.tar.xz
systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.zip
Try to use more systemd services
Diffstat (limited to 'modules.d/slx-addons/module-setup.sh')
-rwxr-xr-xmodules.d/slx-addons/module-setup.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/modules.d/slx-addons/module-setup.sh b/modules.d/slx-addons/module-setup.sh
index 7a2d78aa..5d84584c 100755
--- a/modules.d/slx-addons/module-setup.sh
+++ b/modules.d/slx-addons/module-setup.sh
@@ -8,7 +8,16 @@ depends() {
echo dnbd3-rootfs
}
install() {
- inst_hook pre-pivot 70 "$moddir/scripts/setup-addons.sh"
- inst "${moddir}/services/ldconfig.service" \
- "/opt/openslx/services/ldconfig.service"
+ 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}/dracut-pre-pivot.service.requires"
+ ln_r "${systemdsystemunitdir}/${_name}.service" \
+ "${systemdsystemunitdir}/dracut-pre-pivot.service.requires/${_name}.service"
}