base-files: move hostname operations out of issue file settings
cover base-files: move hostname operations out of issue file settings
*** BLURB HERE ***
The following changes since commit c23c8ebc7f66a92110bfc9e3c4d633a432d1353b:
core-image-sato-sdk-ptest: Try and keep image below 4GB limit (2019-04-16 11:10:02 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/base-files-issue
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/base-files-issue
Chen Qi (1):
base-files: move hostname operations out of issue file settings
meta/recipes-core/base-files/base-files_3.0.14.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/1 base-files: move hostname operations out of issue file settings
The function do_install_basefilesissue is meant to deal with /etc/issue* files and the following setting could actually be overridden.
BASEFILESISSUEINSTALL ?= "do_install_basefilesissue"
So move the hostname operations out of this function.
--- meta/recipes-core/base-files/base-files_3.0.14.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
meta/recipes-core/base-files/base-files_3.0.14.bb +4 -3
@@ -134,15 +134,16 @@ do_install () { install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd ln -sf /proc/mounts ${D}${sysconfdir}/mtab -} -DISTRO_VERSION[vardepsexclude] += "DATE" -do_install_basefilesissue () { + # deal with hostname if [ "${hostname}" ]; then echo ${hostname} > ${D}${sysconfdir}/hostname echo "127.0.1.1 ${hostname}" >> ${D}${sysconfdir}/hosts fi +} +DISTRO_VERSION[vardepsexclude] += "DATE" +do_install_basefilesissue () { install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} if [ -n "${DISTRO_NAME}" ]; then printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue
Signature · 1 line
1.9.1