Customize login prompt text in Yocto
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
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
Hi Peter,
Thanks a lot for the info, I will try it out.
Regards,
Andreas
Quoted 23 lines
24 apr. 2016 kl. 11:06 skrev Peter Bergin <[email protected]>:
Hi,
Quoted 8 lines · Andreas Enbacka
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 Enbackathe 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
Quoted 11 lines
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
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:[email protected]]
Sent: 25. huhtikuutata 2016 0:07
To: Peter Bergin <[email protected]>
Cc: Andreas Enbacka <[email protected]>; [email protected]
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
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: [email protected]
To: [email protected]
Date: Tue, 26 Apr 2016 13:08:13 +0300
CC: [email protected]
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:[email protected]]
Sent: 25. huhtikuutata 2016 0:07
To: Peter Bergin <[email protected]>
Cc: Andreas Enbacka <[email protected]>; [email protected]
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
Signature · 4 lines
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto