mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 07:51:21 +03:00
e2c7c94ea3
A follow-up for commita8cb1dc3e0
. Commita8cb1dc3e0
made sure that initrd-cleanup.service won't be stopped when initrd-switch-root.target is isolated. However even with this change, it might happen that initrd-cleanup.service survives the switch to rootfs (since it has no ordering constraints against initrd-switch-root.target) and is stopped right after when default.target is isolated. This led to initrd-cleanup.service entering in failed state as it happens when oneshot services are stopped. This patch along witha8cb1dc3e0
should fix issue #4343. Fixes: #4343
19 lines
777 B
SYSTEMD
19 lines
777 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# 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 initrd-cleanup.service
|