[poky] systemd and sysvinit enabled in DISTRO_FEATURES
Hector Almeida
hector at ikatu.com
Wed Jan 16 06:11:02 PST 2019
Ross,
thanks for all the clarifications!
Best regards,
Hector
On 15/1/19 07:51, Burton, Ross wrote:
> 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