]> code.ossystems Code Review - openembedded-core.git/commit
update-rc.d: don't do anything if systemd.bbclass is inherited
authorRoss Burton <ross.burton@intel.com>
Fri, 8 Feb 2013 22:43:16 +0000 (22:43 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Feb 2013 14:44:31 +0000 (14:44 +0000)
commit0273a22fec3c9360df2510b759c5bf9af610551f
tree544536e3d5d1a2cfa477312b11977ba83d30ec0e
parent6d89c6744a98dce1fee6a21f1dad1305f6bf6fb5
update-rc.d: don't do anything if systemd.bbclass is inherited

We need the update-rc.d class to work when systemd is being used so that
packages that only have SysV init scripts still work.  However if a recipe
supports both we don't want to install SysV and systemd files under systemd.

To solve this, before doing real work in update-rc.d check if the systemd class
has been inherited and don't do anything if it has.

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