problem while adding both systemd and sysvinit on yocto

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

problem while adding both systemd and sysvinit on yocto

1,265 次查看
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

标签 (1)
0 项奖励
3 回复数

1,247 次查看
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 项奖励

1,229 次查看
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 项奖励

1,213 次查看
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 项奖励