summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-extra-script/services/s3-extra-post-mount.service
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-extra-script/services/s3-extra-post-mount.service')
-rw-r--r--modules.d/slx-extra-script/services/s3-extra-post-mount.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules.d/slx-extra-script/services/s3-extra-post-mount.service b/modules.d/slx-extra-script/services/s3-extra-post-mount.service
new file mode 100644
index 00000000..d7373ab8
--- /dev/null
+++ b/modules.d/slx-extra-script/services/s3-extra-post-mount.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Run extra script after /sysroot is mounted
+ConditionFileIsExecutable=/etc/extra-init
+After=s3-mount-root.service
+Before=initrd-switch-root.target initrd-cleanup.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/etc/extra-init post-mount
+KillMode=process
+KillSignal=SIGTERM