systemd: check for systemctl first, and don't force systemd to be installed.
authorRoss Burton <ross.burton@intel.com>
Tue, 5 Mar 2013 14:12:50 +0000 (14:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Mar 2013 22:43:03 +0000 (22:43 +0000)
commit059cc90e71bf241d5f4634f18a939b9d61cd2bdf
tree5894cb66d9217a62b4936576231b153539cba308
parentd3ed4f633315bc7b2a11399b4aea09c7c37e4569
systemd: check for systemctl first, and don't force systemd to be installed.

With both sysvinit and systemd features enabled these postinsts may actually run
on a target without systemd, so check that systemctl is present before using it.

(From OE-Core rev: ac00e56cb9daacef17a6fdebe7b8ca1667b7e1c4)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/systemd.bbclass