diff options
author | Simon Rettberg | 2024-01-25 15:47:09 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-01-29 09:53:08 +0100 |
commit | abb148916593de63554ef58c53cb1dd8fbbb0ab1 (patch) | |
tree | d8c640c33f699f3abc567d9bbf111190c779b7d2 /modules.d/conf-tgz/services | |
parent | [dnbd3-rootfs] Try optimized ext4 mount options if none are given (diff) | |
download | systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.tar.gz systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.tar.xz systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.zip |
Try to use more systemd services
Diffstat (limited to 'modules.d/conf-tgz/services')
3 files changed, 38 insertions, 0 deletions
diff --git a/modules.d/conf-tgz/services/s3-fetch-config-tgz.service b/modules.d/conf-tgz/services/s3-fetch-config-tgz.service new file mode 100644 index 00000000..60d2b774 --- /dev/null +++ b/modules.d/conf-tgz/services/s3-fetch-config-tgz.service @@ -0,0 +1,13 @@ +[Unit] +Description=Download config.tgz +Requires=s3-setup-bootif-network.service +After=s3-setup-bootif-network.service +Wants=s3-fetch-config.service +After=s3-fetch-config.service +DefaultDependencies=no +IgnoreOnIsolate=true + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/usr/local/bin/s3-fetch-config-tgz.sh diff --git a/modules.d/conf-tgz/services/s3-fetch-config.service b/modules.d/conf-tgz/services/s3-fetch-config.service new file mode 100644 index 00000000..9d602899 --- /dev/null +++ b/modules.d/conf-tgz/services/s3-fetch-config.service @@ -0,0 +1,13 @@ +[Unit] +Description=Download config +Requires=s3-setup-bootif-network.service +After=s3-setup-bootif-network.service +Wants=s3-get-system-uuid.service +After=s3-get-system-uuid.service +DefaultDependencies=no +IgnoreOnIsolate=true + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/usr/local/bin/s3-fetch-config.sh diff --git a/modules.d/conf-tgz/services/s3-unpack-config-tgz.service b/modules.d/conf-tgz/services/s3-unpack-config-tgz.service new file mode 100644 index 00000000..d3b9a3e0 --- /dev/null +++ b/modules.d/conf-tgz/services/s3-unpack-config-tgz.service @@ -0,0 +1,12 @@ +[Unit] +Description=Unpack config.tgz to stage 4 +After=initrd-root-fs.target +Requires=s3-fetch-config-tgz.service +After=s3-fetch-config-tgz.service +DefaultDependencies=no +IgnoreOnIsolate=true + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/usr/local/bin/s3-unpack-config-tgz.sh |