diff options
author | Simon Rettberg | 2024-06-12 15:39:02 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-06-12 15:39:02 +0200 |
commit | 851a6682cd97f7c0a9305bacf3a3f36a53848cc8 (patch) | |
tree | 5933057174ba892944f20df351e1692a77f1a227 /modules.d/slx-extra-script/services/s3-extra-post-dmsetup.service | |
parent | [dnbd3-rootfs] Kill SLX_GENERATE_FSTAB_SCRIPT (diff) | |
download | systemd-init-851a6682cd97f7c0a9305bacf3a3f36a53848cc8.tar.gz systemd-init-851a6682cd97f7c0a9305bacf3a3f36a53848cc8.tar.xz systemd-init-851a6682cd97f7c0a9305bacf3a3f36a53848cc8.zip |
[slx-extra-script] Split up in pre/post-dmsetup
The supplied extra script will be called twice, with either pre-dmsetup
or post-dmsetup as the first parameter.
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.service | 13 |
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 |