On Fri, Apr 12, 2013 at 03:24:57PM +0100, Burton, Ross wrote: > On 12 April 2013 15:20, Martin Jansa <martin.ja...@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.ja...@gmail.com
signature.asc
Description: Digital signature
_______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core