[OE-core] wpa-supplicant postinsts failing without sysvinit in DISTRO_FEATURES

Martin Jansa martin.jansa at gmail.com
Fri Apr 12 14:43:35 UTC 2013


On Fri, Apr 12, 2013 at 03:24:57PM +0100, Burton, Ross wrote:
> On 12 April 2013 15:20, Martin Jansa <martin.jansa at gmail.com> wrote:
> > oe-core/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc
> >
> > defines pkg_postinst_wpa-supplicant
> > with:
> >         if [ "x$DBUSPID" != "x" ]; then
> >                 /etc/init.d/dbus-1 reload || true
> >         fi
> >
> > and /etc/init.d/dbus-1 is missing without sysvinit in DISTRO_FEATURES
> >
> > Thanks to "true" it doesn't fail completely, but if the goal is no
> > warnings in images then errors should be fixed too :)
> 
> We're going to see stuff like this a lot - clearly we need some
> abstraction over this.  One-off for dbus, or a general-purpose small
> abstraction over invoking systemctl or init scripts?

I have noticed this when testing upgrade paths, but general-purpose
abstraction will became quite complicated in images which have both
sysvinit and systemd scripts (I guess that checking which init is
running will be needed to decide if /etc/init.d/foo or systemctl should be
called :/).

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130412/b0d29c8d/attachment-0002.sig>


More information about the Openembedded-core mailing list