]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
update-rc.d.bbclass: ignore init script return code
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 11 Oct 2016 12:43:28 +0000 (15:43 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Oct 2016 21:18:36 +0000 (22:18 +0100)
commitdaa3c266a7ffa060b52381fa00df518102fceda8
treef99b8ddc3289cc9062e7df70ea03df5f2c570a4d
parent607a2a1de4b77818c3e801a4de7ff0888229e036
update-rc.d.bbclass: ignore init script return code

We need to ignore the return code from the init script 'stop' command in
the preinst and prerm scriptlets. Otherwise package upgrade or
deinstallation (at least when opkg is used) is likely to fail if the
daemon is not running. That is because an init script possibly returns
'1' if you try to stop a service that is not running which, in turn,
causes the scriptlet to fail which, in turn, causes the package
(de-)installation to fail.

[YOCTO #10299]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-rc.d.bbclass