problem while adding both systemd and sysvinit on yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

problem while adding both systemd and sysvinit on yocto

1,978 Views
Chethan
Contributor III

Hi,

I am using LS1046ardb board for one of my project, in that I want add the recipes of systemd and sysvinit so that I tried modify the local.conf like below.

DISTRA_FEATURES_append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "system-compat-units"

But in that I am able to configure the Systemd on root file system NOT rcS.d and all (related files of sysvinit).

commands used to build root file system is  

1. flex-builder -i clean-rfs -r yocto

2. flex-builder -i mkrfs -r yocto:devel -a arm64

Please throw some light to move forward this problem

Thanks & Regards

Chethan GR

Labels (1)
0 Kudos
Reply
3 Replies

1,960 Views
yipingwang
NXP TechSupport
NXP TechSupport

I discussed this issue with the flex-builder developer.

If systemd is used, sysvinit rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d, rc6.d & rcS.d folders in /etc folder should not be needed any more.

Integrating both systemd and sysvinit in rootfs simultaneously is not reasonable.

 

0 Kudos
Reply

1,942 Views
Chethan
Contributor III

Hi,

If I added both Systemd and Sysvinit in root file system what problem will cause? Please let me know.

Thanks & Regards

Chethan GR   

0 Kudos
Reply

1,926 Views
yipingwang
NXP TechSupport
NXP TechSupport

It is impossible for Yocto to integrate both systemd and sysvinit into the rootfs filesystem, there is conflicting problem to integrate both, because both systemd and sysvinit contain "init" script.

So you only could choose one init manager tool systemd or sysvinit.

0 Kudos
Reply