[poky] systemd and sysvinit enabled in DISTRO_FEATURES
Burton, Ross
ross.burton at intel.com
Tue Jan 15 02:51:17 PST 2019
On Tue, 15 Jan 2019 at 01:12, Hector Almeida <hector at ikatu.com> wrote:
> For example, in connman's recipe, the 'connman' sysvinit script is installed if 'DISTRO_FEATURES' contains 'sysvinit'. But then, is there any other procedure that would delete this file from an image the chooses systemd as init manager?
Sorry, it was late and I didn't quite read your mail properly.
Packages are built once for all configurations. If you want a single
configuration that builds two images, one using systemd and one using
sysvinit, then the packages you build will have both systemd units and
init scripts in so that the packages are usable under both. systemd
will ignore the init scripts if a unit with the same name exists, and
sysvinit obviously ignores the units.
If you really want to delete the units in your sysv image to save
every byte, then you can use a rootfs post-process hook to delete
them. We're talking a few kb, however.
Ross
More information about the poky
mailing list