summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-files/base-files_3.0.14.bb
diff options
context:
space:
mode:
authorJörg Sommer <joerg.sommer@navimatix.de>2023-10-16 12:31:23 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-19 13:38:57 +0100
commit6f18993c8484f5b375534fc519632ef7145c80d3 (patch)
tree4ecbcacbeff9c3a7bc4cc38a174d16360b346ebc /meta/recipes-core/base-files/base-files_3.0.14.bb
parent16dc1bb3de810552a2ce7c52d855455bbcdd6008 (diff)
downloadpoky-6f18993c8484f5b375534fc519632ef7145c80d3.tar.gz
base-files: Remove localhost ::1 from hosts if ipv6 missing
If a distribution doesn't provide IPv6, the mapping of localhost and ::1 has to be removed. (From OE-Core rev: c3d9cff06f383528884bfb5c4f8a6a6cb023977a) Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.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.bb4
1 files changed, 4 insertions, 0 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 6ba3971e32..4d246126a2 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
@@ -136,6 +136,10 @@ do_install () {
136 echo ${hostname} > ${D}${sysconfdir}/hostname 136 echo ${hostname} > ${D}${sysconfdir}/hostname
137 echo "127.0.1.1 ${hostname}" >> ${D}${sysconfdir}/hosts 137 echo "127.0.1.1 ${hostname}" >> ${D}${sysconfdir}/hosts
138 fi 138 fi
139
140 if ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'false', 'true', d)}; then
141 sed -i '/^::1/s/ localhost//' ${D}${sysconfdir}/hosts
142 fi
139} 143}
140 144
141do_install:append:libc-glibc () { 145do_install:append:libc-glibc () {