1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-13 18:33:44 +01:00
parent a85daa0dfb
commit 7e1ed1f3b2
3 changed files with 7 additions and 3 deletions

View File

@ -19,6 +19,7 @@ enable getty@.service
enable systemd-timesyncd.service
enable systemd-networkd.service
enable systemd-resolved.service
enable systemd-repart.service
disable console-getty.service
disable debug-shell.service

View File

@ -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', ''],
]

View File

@ -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