mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user