units: downgrade Requires= to Wants=

Combining Requires= with Before= doesn't really make sense, since this
means we are requiring something that runs after us, which logically
cannot be fulfilled.

Let's hence downgrade Requires= to Wants= so that the ordering is kept
but no failure propagation implied.
This commit is contained in:
Lennart Poettering 2020-07-29 16:30:28 +02:00
parent 78490efca3
commit b89f5f7b03
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
Description=Switch Root
AssertPathExists=/etc/initrd-release
DefaultDependencies=no
Requires=initrd-switch-root.service
Wants=initrd-switch-root.service
Before=initrd-switch-root.service
AllowIsolate=yes
Wants=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target systemd-journald.service initrd-cleanup.service