diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-14 13:39:10 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-15 14:59:11 +0200 |
commit | 9810e419425263bde86787bc21251f1ad3c35628 (patch) | |
tree | 1ba29f7dd8a3e3014a992677688f995400408c7b /units/systemd-sysext.service | |
parent | TODO: various things about partitioning (diff) | |
download | systemd-9810e419425263bde86787bc21251f1ad3c35628.tar.xz systemd-9810e419425263bde86787bc21251f1ad3c35628.zip |
units: reorder/split unit dependency blocks
The block is reordered and split to have:
1. description + documentation
2. (optionally) conditions
3. all the dependencies
I think it's easier to read the units this way.
Also, the Conflicts+Before is seperated out to separate lines.
The ordering dependency is "fake", because it could just as well be
After=, we are adding it to force ordering wrt. shutdown.target, and
it plays a different role than the other Before=, which are about a
real ordering on boot.
Diffstat (limited to 'units/systemd-sysext.service')
-rw-r--r-- | units/systemd-sysext.service | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/units/systemd-sysext.service b/units/systemd-sysext.service index 35b5edca1d..245c0e5a0d 100644 --- a/units/systemd-sysext.service +++ b/units/systemd-sysext.service @@ -10,10 +10,7 @@ [Unit] Description=Merge System Extension Images into /usr/ and /opt/ Documentation=man:systemd-sysext.service(8) -DefaultDependencies=no -Conflicts=shutdown.target -After=local-fs.target -Before=sysinit.target shutdown.target systemd-tmpfiles.service + ConditionCapability=CAP_SYS_ADMIN ConditionDirectoryNotEmpty=|/etc/extensions ConditionDirectoryNotEmpty=|/run/extensions @@ -21,6 +18,12 @@ ConditionDirectoryNotEmpty=|/var/lib/extensions ConditionDirectoryNotEmpty=|/usr/local/lib/extensions ConditionDirectoryNotEmpty=|/usr/lib/extensions +DefaultDependencies=no +After=local-fs.target +Before=sysinit.target systemd-tmpfiles.service +Conflicts=shutdown.target +Before=shutdown.target + [Service] Type=oneshot RemainAfterExit=yes |