[poky] systemd and sysvinit enabled in DISTRO_FEATURES
Hector Almeida
hector at ikatu.com
Mon Jan 14 16:12:27 PST 2019
Hi,
I'm trying to use systemd on my main image and sysvinit in a rescue
image (a ramdisk which will be able to recover a device).
I'm using the configuration suggested in "Using systemd for the Main
Image and Using SysVinit for the Rescue Image", where it states that
this configuration:
"... causes your main image to use the |packagegroup-core-boot.bb|
recipe and systemd. The rescue/minimal image cannot use this package
group. However, it can install SysVinit and the appropriate packages
will have support for both systemd and SysVinit."
But I end up with the /etc/init.d folder with a lot of sysvinit scripts
in my main image. Also I have some systemd files on my rescue image
under /etc/systemd.
I can't understand how configuring a different init system for different
images would work. What I can see that it is done on many recipes
through the pkg_postint function, is something like: if DISTRO_FEATURES
contains systemd and sysvinit, then mask the systemd service. But I
can't find anywhere, some function that takes care of preventing the
installation of sysvinit or systemd services on each image, depending on
whether the have chosen one or another.
Any pointers would be appreciated.
Thanks,
Hector
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20190114/c4330e6d/attachment.html>
More information about the poky
mailing list