|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From f3b8fbb1da6519e14985ea444f8304673d20ad3f Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Harald Hoyer <harald@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Wed, 3 Sep 2014 13:28:31 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] initrd-parse-etc.service: ignore return code of daemon-reload
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
It seems the return code of systemctl daemon-reload can be !=0 in some
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
circumstances, which causes a failure of the unit and breaks booting in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
the initrd.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
units/initrd-parse-etc.service.in | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/units/initrd-parse-etc.service.in b/units/initrd-parse-etc.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index c0b25430bc..42c059bbd2 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/units/initrd-parse-etc.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/units/initrd-parse-etc.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -16,7 +16,7 @@ ConditionPathExists=/etc/initrd-release
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
[Service]
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Type=oneshot
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
-ExecStartPre=@rootbindir@/systemctl daemon-reload
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ExecStartPre=-@rootbindir@/systemctl daemon-reload
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
# we have to retrigger initrd-fs.target after daemon-reload
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
ExecStart=-@rootbindir@/systemctl --no-block start initrd-fs.target
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
ExecStart=@rootbindir@/systemctl --no-block start initrd-cleanup.service
|