diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-04-17 10:01:25 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-12 09:13:38 +0100 |
commit | 1670d355cb84055375019af7997cb8c0184d3592 (patch) | |
tree | ac4248bb38af93454f91937c234f2e961213a268 /meta/recipes-core/base-files/base-files_3.0.14.bb | |
parent | 3f28e5ba7878d57a6c7eb475a83f620a5fda852f (diff) | |
download | poky-1670d355cb84055375019af7997cb8c0184d3592.tar.gz |
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.
(From OE-Core rev: 2eab107e88800a62f7cb8d7f9f01e77214e9dcee)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/base-files/base-files_3.0.14.bb')
-rw-r--r-- | meta/recipes-core/base-files/base-files_3.0.14.bb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb index a1639db830..4b4027f18d 100644 --- a/meta/recipes-core/base-files/base-files_3.0.14.bb +++ b/meta/recipes-core/base-files/base-files_3.0.14.bb | |||
@@ -134,15 +134,16 @@ do_install () { | |||
134 | install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd | 134 | install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd |
135 | 135 | ||
136 | ln -sf /proc/mounts ${D}${sysconfdir}/mtab | 136 | ln -sf /proc/mounts ${D}${sysconfdir}/mtab |
137 | } | ||
138 | 137 | ||
139 | DISTRO_VERSION[vardepsexclude] += "DATE" | 138 | # deal with hostname |
140 | do_install_basefilesissue () { | ||
141 | if [ "${hostname}" ]; then | 139 | if [ "${hostname}" ]; then |
142 | echo ${hostname} > ${D}${sysconfdir}/hostname | 140 | echo ${hostname} > ${D}${sysconfdir}/hostname |
143 | echo "127.0.1.1 ${hostname}" >> ${D}${sysconfdir}/hosts | 141 | echo "127.0.1.1 ${hostname}" >> ${D}${sysconfdir}/hosts |
144 | fi | 142 | fi |
143 | } | ||
145 | 144 | ||
145 | DISTRO_VERSION[vardepsexclude] += "DATE" | ||
146 | do_install_basefilesissue () { | ||
146 | install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} | 147 | install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} |
147 | if [ -n "${DISTRO_NAME}" ]; then | 148 | if [ -n "${DISTRO_NAME}" ]; then |
148 | printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue | 149 | printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue |