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