gpt4 book ai didi

linux - 哪个实用程序产生 "Poky (Yocto Project Reference Distro) 2.6.1 (none)/dev/console"

转载 作者:太空宇宙 更新时间:2023-11-04 10:01:22 25 4
gpt4 key购买 nike

我正在玩 Yocto Thud 2.6.1。

我想知道哪个实用程序/程序/库负责生成以下行:

'Poky(Yocto 项目引用发行版)2.6.1(无)/dev/console'

Yocto Login Prompt谢谢

最佳答案

登录前的行来自/etc/issue 和/etc/issue.net 文件。您可以通过使用您自己的问题和 issue.net 文件创建一个 bbappend 文件来修改它们。

请注意,Yocto 仍将附加 Poky (Yocto Project Reference Distro) 2.6.1 行。

查看 base_file_3.0.14.bb(我当前的版本):

BASEFILESISSUEINSTALL ?= "do_install_basefilesissue"

[...]

do_install_basefilesissue () {
if [ "${hostname}" ]; then
echo ${hostname} > ${D}${sysconfdir}/hostname
fi

install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir}
if [ -n "${DISTRO_NAME}" ]; then
printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue
printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net
if [ -n "${DISTRO_VERSION}" ]; then
distro_version_nodate=${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot').replace('${DATE}','')}
printf "%s " $distro_version_nodate >> ${D}${sysconfdir}/issue
printf "%s " $distro_version_nodate >> ${D}${sysconfdir}/issue.net
fi
printf "\\\n \\\l\n" >> ${D}${sysconfdir}/issue
echo >> ${D}${sysconfdir}/issue
echo "%h" >> ${D}${sysconfdir}/issue.net
echo >> ${D}${sysconfdir}/issue.net
fi
}

你需要禁用这个 do_install_basefileissue 并改为设置你自己的安装:

基础文件_%.bbappend:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_prepend = " file://issue \
file://issue.net "
BASEFILESISSUEINSTALL = "do_install_basefilesissuecustom"

do_install_basefilesissuecustom () {
install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir}
}

关于linux - 哪个实用程序产生 "Poky (Yocto Project Reference Distro) 2.6.1 (none)/dev/console",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55957233/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com