daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
661545
From 592fde970f4493b202ed0fc035e3f6785a850a55 Mon Sep 17 00:00:00 2001
661545
From: Yu Watanabe <watanabe.yu+github@gmail.com>
661545
Date: Tue, 11 Oct 2016 21:36:14 +0900
661545
Subject: [PATCH] units: add Wants=initrd-cleanup.service to
661545
 initrd-switch-root.target (#4345)
661545
661545
`systemctl isolate initrd-switch-root.target` called by initrd-cleanup.service
661545
kills initrd-cleanup.service itself. Then, initrd-cleanup.service failed and
661545
system goes to emergency shell.
661545
To prevent this problem, this commit adds `Wants=initrd-cleanup.service` to
661545
initrd-switch-root.target.
661545
661545
fixes: #4343.
661545
(cherry picked from commit a8cb1dc3e0fa81affd01c8ed3df35e4c4520a24e)
661545
661545
Related: #1560417
661545
---
661545
 units/initrd-switch-root.target | 2 +-
661545
 1 file changed, 1 insertion(+), 1 deletion(-)
661545
661545
diff --git a/units/initrd-switch-root.target b/units/initrd-switch-root.target
661545
index f34768790b..934d82f667 100644
661545
--- a/units/initrd-switch-root.target
661545
+++ b/units/initrd-switch-root.target
661545
@@ -12,5 +12,5 @@ DefaultDependencies=no
661545
 Requires=initrd-switch-root.service
661545
 Before=initrd-switch-root.service
661545
 AllowIsolate=yes
661545
-Wants=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target systemd-journald.service
661545
+Wants=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target systemd-journald.service initrd-cleanup.service
661545
 After=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target emergency.service emergency.target