diff options
| author | Simon Rettberg | 2024-06-17 14:18:11 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2024-06-17 14:18:11 +0200 |
| commit | a74286a71d74306642d3858b0f6684d99b29a7ec (patch) | |
| tree | 97e4d20e280b3dd77568dbf77e0489fa95a8f06b /modules.d/slx-extra-script/services | |
| parent | [slx-dmsetup] Better not encrypt the rootfs AFTER building the CoW layer (diff) | |
| download | systemd-init-a74286a71d74306642d3858b0f6684d99b29a7ec.tar.gz systemd-init-a74286a71d74306642d3858b0f6684d99b29a7ec.tar.xz systemd-init-a74286a71d74306642d3858b0f6684d99b29a7ec.zip | |
[slx-extra-script] Add post-mount hook
Diffstat (limited to 'modules.d/slx-extra-script/services')
| -rw-r--r-- | modules.d/slx-extra-script/services/s3-extra-post-mount.service | 12 |
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 |
