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

Burton, Ross ross.burton at intel.com
Fri Apr 12 14:52:16 UTC 2013


On 12 April 2013 15:43, Martin Jansa <martin.jansa at gmail.com> wrote:
> 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 :/).

Something along the lines of

  if which systemctl && test -d /run/systemd/system

should do the job.  Checking that directory exists is how
libsystemd-daemon determines if systemd is active or not, so if it's
good enough for them it's good enough for us.

Ross




More information about the Openembedded-core mailing list