mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
a8cb1dc3e0
`systemctl isolate initrd-switch-root.target` called by initrd-cleanup.service kills initrd-cleanup.service itself. Then, initrd-cleanup.service failed and system goes to emergency shell. To prevent this problem, this commit adds `Wants=initrd-cleanup.service` to initrd-switch-root.target. fixes: #4343.
17 lines
714 B
SYSTEMD
17 lines
714 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Switch Root
|
|
ConditionPathExists=/etc/initrd-release
|
|
DefaultDependencies=no
|
|
Requires=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
|
|
After=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target emergency.service emergency.target
|