]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: make systemd-repart.service installable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Mar 2020 17:33:44 +0000 (18:33 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Mar 2020 12:51:04 +0000 (14:51 +0200)
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.

presets/90-systemd.preset
units/meson.build
units/systemd-repart.service.in

index dc9d02f0b937ac7cb145e79915154ed441d46667..7406c92a5c3c5416b076e586177efcde6b97eb04 100644 (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
index ea91f0cc9ea7df63e5e75d6a7e096e06ffd7d46f..9964eb79a4835c3082cf80d27db1eefea49e5f74 100644 (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',                        ''],
 ]
index 7ce6aefd29fdb9dde76c05d0be064ccb97d99673..41a9d82b93a0692ddd4e6a76ce2229579aa4af0d 100644 (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