[yocto] Customize login prompt text in Yocto

Chris Trobridge christrobridge at hotmail.com
Tue Apr 26 04:03:43 PDT 2016


Hi Andreas,
In general, you should not add your changes to poky directly, or any of the other provided layers.
In this case the 'permanent' way to do this is to produce your own distribution layer but the quick alternative is to set the variable in conf/local.conf.
Regards,Chris 

From: andreas.enbacka at gasera.fi
To: rudolf.streif at gmail.com
Date: Tue, 26 Apr 2016 13:08:13 +0300
CC: yocto at yoctoproject.org
Subject: Re: [yocto] Customize login prompt text in Yocto

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
-- 
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160426/56103595/attachment.html>


More information about the yocto mailing list