]> git.ipfire.org Git - thirdparty/systemd.git/commit - units/initrd-switch-root.service
units: make sure that initrd-switch-root.service pulls in .target
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Sep 2022 12:00:43 +0000 (13:00 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 15 Sep 2022 12:59:11 +0000 (14:59 +0200)
commit5b5ec138c65d587ecac1be5790ab9854e49a0446
treeb9917dd9491c9dfe38d3d88738ef12a625349a7a
parent3449814b8bda96e0a7d14fe1287f85ba9b269d8e
units: make sure that initrd-switch-root.service pulls in .target

Normally we queue initrd-switch-root.target/isolate, which pulls in the
service via Wants= in the .target unit file. But if the service is instead
started directly, there may be nothing pulling in the target. Let's make
sure that the reference exists.
units/initrd-switch-root.service