units: add missing Before=shutdown.target for units which it Conflicts
There's a few services missing this ordering. Also remove a duplicate Conflicts=shutdown.target from systemd-volatile-root.service.
This commit is contained in:
parent
6f6d1a8a6a
commit
0b9ad5bf2e
|
@ -11,6 +11,7 @@ Documentation=man:systemd.special(5) man:systemd.offline-updates(7)
|
||||||
After=system-update.target
|
After=system-update.target
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
Before=shutdown.target
|
||||||
|
|
||||||
# system-update-generator uses laccess("/system-update"), while a plain
|
# system-update-generator uses laccess("/system-update"), while a plain
|
||||||
# ConditionPathExists=/system-update uses access("/system-update"), so
|
# ConditionPathExists=/system-update uses access("/system-update"), so
|
||||||
|
|
|
@ -12,7 +12,7 @@ DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
Requires=systemd-networkd.service
|
Requires=systemd-networkd.service
|
||||||
After=systemd-networkd.service
|
After=systemd-networkd.service
|
||||||
Before=network-online.target
|
Before=network-online.target shutdown.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
@ -12,7 +12,6 @@ DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
After=sysroot.mount
|
After=sysroot.mount
|
||||||
Before=initrd-root-fs.target shutdown.target
|
Before=initrd-root-fs.target shutdown.target
|
||||||
Conflicts=shutdown.target
|
|
||||||
AssertPathExists=/etc/initrd-release
|
AssertPathExists=/etc/initrd-release
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
Loading…
Reference in a new issue