[OE-core] [PATCH 0/2] More robust prerm and preinst scriptlets

Khem Raj raj.khem at gmail.com
Mon Oct 17 23:44:21 UTC 2016


> On Oct 11, 2016, at 5:43 AM, Markus Lehtonen <markus.lehtonen at linux.intel.com> wrote:
> 
> These patches prevent package deinstallation and upgrade failures caused by
> init script error on opkg-based systems. The problem was that init script
> 'stop' will likely return '1' if the daemon is not running. This, in turn
> caused the scriptlet to error out preventing package (de-)installation.

perhaps checking if its running before trying to stop it might be another option

> 
> Markus Lehtonen (2):
>  update-rc.d.bbclass: ignore init script return code
>  sysklogd and busybox: ignore return code from init script stop
> 
> meta/classes/update-rc.d.bbclass            | 4 ++--
> meta/recipes-core/busybox/busybox.inc       | 2 +-
> meta/recipes-extended/sysklogd/sysklogd.inc | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
> 
> --
> 2.6.6
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161017/fcd4fac8/attachment-0002.sig>


More information about the Openembedded-core mailing list