[yocto] Customize login prompt text in Yocto

Andreas Enbacka andreas.enbacka at gasera.fi
Sun Apr 24 07:18:40 PDT 2016


Hi Peter,

Thanks a lot for the info, I will try it out.

Regards,
Andreas

> 24 apr. 2016 kl. 11:06 skrev Peter Bergin <peter.bergin at tritech.se>:
> 
> Hi,
> 
>> On 04/24/2016 09:42 AM, Andreas Enbacka wrote:
>> Hello,
>>  
>> Normally, when building e.g., a console-based image using Yocto, you will get at caption text ”Poky Reference Distribution”... at the login prompt. Is it easily possible to change / customize this caption text,
>> and in such a case, which Yocto package / recipe requires change. Any information would be greatly appreciated.
>>  
>> Best regards,
>> Andreas Enbacka
> 
> 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; "
> 
> Best regards,
> /Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160424/c18aff85/attachment.html>


More information about the yocto mailing list