我想根据以下内容创建一个新目标core-image-minimal
我想更改 init 系统systemd
over SysV init
。我希望我的更改是永久性的(不基于 local.conf)。我怎样才能做到这一点?
Edit:正如安德斯在评论中指出的那样,我错了:
可用的初始化系统在 local.conf 中设置,但您确实可以基于每个映像更改初始化系统。在你的情况下你想改变它core-image-minimal
。此映像安装packagegroup-core-boot
其中设置
VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
VIRTUAL-RUNTIME_initscripts ?= "initscripts"
您可以创建自己的packagegroup-core-boot-systemd
这些变量设置为
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""
并将其安装到您的目标。
The configuration of the init system is a Distro Feature http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-features-distro. That means it is not in the image recipe, but in the local.conf.
如果您不想将配置放在 local.conf 中,您可以使用其中的设置创建自定义发行版配置。 local.conf 中唯一需要更改的是这一行
# DISTRO = poky
DISTRO = <custom-distro>
参考手册还有一章介绍创建您自己的发行版 https://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#creating-your-own-distribution
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)