summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-runmode/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-runmode/module-setup.sh')
-rwxr-xr-xmodules.d/slx-runmode/module-setup.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/modules.d/slx-runmode/module-setup.sh b/modules.d/slx-runmode/module-setup.sh
index 7705ad06..c6ab9524 100755
--- a/modules.d/slx-runmode/module-setup.sh
+++ b/modules.d/slx-runmode/module-setup.sh
@@ -8,6 +8,13 @@ depends() {
echo dnbd3-rootfs
}
install() {
- # unpacking config.tgz should be pre-pivot 10, let's do this afterwards
- inst_hook pre-pivot 50 "$moddir/scripts/runmode.sh"
+ _name="s3-enable-runmode"
+ 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"
}