daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ff2b41
From 7872e75d4be31e6ba295c8360e801fd133ee6d76 Mon Sep 17 00:00:00 2001
ff2b41
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
ff2b41
Date: Sun, 29 Jan 2017 12:45:51 -0500
ff2b41
Subject: [PATCH] units: drop KillMode= from initrd-switch-root.service
ff2b41
ff2b41
The service already has DefaultDeps disabled, so systemd should not try to stop
ff2b41
it. And if it *does* get stopped, we don't want the zombie process around.
ff2b41
KillMode=none does not change anything in the killall() phase, and we already
ff2b41
use argv[0][0] = '@' to protect against that anyway. KillMode=none should not
ff2b41
be useful in normal operation, so let's leave it out.
ff2b41
ff2b41
(cherry picked from commit 0af9a194ca0243fcb206499116e28612f571bd91)
ff2b41
ff2b41
Related: #1754053
ff2b41
---
ff2b41
 units/initrd-switch-root.service.in | 1 -
ff2b41
 1 file changed, 1 deletion(-)
ff2b41
ff2b41
diff --git a/units/initrd-switch-root.service.in b/units/initrd-switch-root.service.in
ff2b41
index 82893dafb1..d8e35c79fe 100644
ff2b41
--- a/units/initrd-switch-root.service.in
ff2b41
+++ b/units/initrd-switch-root.service.in
ff2b41
@@ -17,4 +17,3 @@ AllowIsolate=yes
ff2b41
 Type=oneshot
ff2b41
 # we have to use "--force" here, otherwise systemd would umount /run
ff2b41
 ExecStart=@rootbindir@/systemctl --no-block --force switch-root /sysroot
ff2b41
-KillMode=none