summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-13 18:33:44 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-31 14:51:04 +0200
commit7e1ed1f3b29162df25064b33dc55ac8cf432bb0b (patch)
treeb068656265315654ae80f1a557209b6572c8734b /units
parenta85daa0dfb3eb03be9845760e90e54b9af8fb00e (diff)
downloadsystemd-7e1ed1f3b29162df25064b33dc55ac8cf432bb0b.tar.gz
units: make systemd-repart.service installable
This essentially adds another layer of configurability: build disable, this, presence of configuration. The default is set to enabled, because the service does nothing w/o config.
Diffstat (limited to 'units')
-rw-r--r--units/meson.build3
-rw-r--r--units/systemd-repart.service.in6
2 files changed, 6 insertions, 3 deletions
diff --git a/units/meson.build b/units/meson.build
index ea91f0cc9e..9964eb79a4 100644
--- a/units/meson.build
+++ b/units/meson.build
@@ -228,8 +228,7 @@ in_units = [
'multi-user.target.wants/'],
['systemd-vconsole-setup.service', 'ENABLE_VCONSOLE'],
['systemd-volatile-root.service', ''],
- ['systemd-repart.service', 'ENABLE_REPART',
- 'sysinit.target.wants/ initrd-root-fs.target.wants/'],
+ ['systemd-repart.service', 'ENABLE_REPART'],
['user-runtime-dir@.service', ''],
['user@.service', ''],
]
diff --git a/units/systemd-repart.service.in b/units/systemd-repart.service.in
index 7ce6aefd29..41a9d82b93 100644
--- a/units/systemd-repart.service.in
+++ b/units/systemd-repart.service.in
@@ -21,5 +21,9 @@ Type=oneshot
RemainAfterExit=yes
ExecStart=@rootbindir@/systemd-repart --dry-run=no
-# The tool returns 77 if there's no GPT partition table pre-existing
+# The tool returns 77 if there's no existing GPT partition table
SuccessExitStatus=77
+
+[Install]
+WantedBy=sysinit.target
+WantedBy=initrd-root-fs.target