[yocto] Customize login prompt text in Yocto

Andreas Enbacka andreas.enbacka at gasera.fi
Tue Apr 26 03:08:13 PDT 2016


Hello,

 

What is the correct way to override poky.conf? I tried adding a new file custom-poky.conf into meta-yocto/conf/distro, including the poky.conf file and overriding e.g., DISTRO_VERSION. Is this the correct approach, or is some other changes required as well?

 

Best regards,

Andreas Enbacka

 

From: Rudolf Streif [mailto:rudolf.streif at gmail.com] 
Sent: 25. huhtikuutata 2016 0:07
To: Peter Bergin <peter.bergin at tritech.se>
Cc: Andreas Enbacka <andreas.enbacka at gasera.fi>; yocto at yoctoproject.org
Subject: Re: [yocto] Customize login prompt text in Yocto

 

the information shown is from the file /etc/issue. You can for example do post-processing on this file and change the information. You can add this to your image recipe.

update_issue() {
    echo "Your text" > ${IMAGE_ROOTFS}/etc/issue
}

ROOTFS_POSTPROCESS_COMMAND += " update issue; "

 

 

The more "yoctonic" way of setting this is to modify the DISTRO_NAME variable, which is set in the distro configuration file e.g. poky.conf. If you are building your own distro it you may want to derive your own distro configuration file from the ones that Poky provides. There you can also set other variables such as DISTRO_VERSION, MAINTAINER, etc.

 

Cheers,

Rudi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160426/7444f29d/attachment.html>


More information about the yocto mailing list