base-files: show verbose distro information
base-file bbappend: console login promt: show more related distro information By appling this bbappend,the context of /etc/issue and /etc/issue.net are written by DISTROVERSION-ISSUE variable. If this bbappend file not available then the base recipes takes over these issue* files. EXTERNALSRC_GIT_SRCREV depends on externalgitsrc.bbclass BugzID: 53629 Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
parent
f51f1b4db8
commit
950c35b01e
|
|
@ -0,0 +1,26 @@
|
|||
BASEFILESISSUEINSTALL = "do_install_basefilesissue"
|
||||
|
||||
distro_version_nodate = "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot').replace('${DATE}','')}"
|
||||
|
||||
DISTROVERSION-ISSUE = "${DISTRO_NAME} ${distro_version_nodate} - release ${EXTERNALSRC_GIT_SRCREV}\n"
|
||||
DISTROVERSION-ISSUE_append= "kernel \\\r\n"
|
||||
DISTROVERSION-ISSUE_append = "\\\n @ \\\l\n"
|
||||
|
||||
#r: kernel version
|
||||
#n: hostname
|
||||
#l: terminal device
|
||||
|
||||
|
||||
|
||||
do_install_basefilesissue() {
|
||||
|
||||
if [ "${hostname}" ]; then
|
||||
echo ${hostname} > ${D}${sysconfdir}/hostname
|
||||
fi
|
||||
|
||||
install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir}
|
||||
printf "${DISTROVERSION-ISSUE}\n" >> ${D}${sysconfdir}/issue
|
||||
printf "${DISTROVERSION-ISSUE}" >> ${D}${sysconfdir}/issue.net
|
||||
echo -e "%h\n" >> ${D}${sysconfdir}/issue.net
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue