chiark / gitweb /
initrd-parse-etc.service: ignore return code of daemon-reload
authorHarald Hoyer <harald@redhat.com>
Wed, 3 Sep 2014 11:28:31 +0000 (13:28 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 3 Sep 2014 11:28:31 +0000 (13:28 +0200)
It seems the return code of systemctl daemon-reload can be !=0 in some
circumstances, which causes a failure of the unit and breaks booting in
the initrd.

units/initrd-parse-etc.service.in

index c0b2543..42c059b 100644 (file)
@@ -16,7 +16,7 @@ ConditionPathExists=/etc/initrd-release
 
 [Service]
 Type=oneshot
-ExecStartPre=@rootbindir@/systemctl daemon-reload
+ExecStartPre=-@rootbindir@/systemctl daemon-reload
 # we have to retrigger initrd-fs.target after daemon-reload
 ExecStart=-@rootbindir@/systemctl --no-block start initrd-fs.target
 ExecStart=@rootbindir@/systemctl --no-block start initrd-cleanup.service