diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-01-08 17:12:52 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-11 10:39:08 +0000 |
commit | 53cebfdfcc189a65de82eccdbd18acf4d979e624 (patch) | |
tree | 772c4e40dc35af47a39efa425794ad787448fa11 /meta/recipes-core/base-files/base-files | |
parent | 4dd51032160897be4132242d6aaaf4dd1e5167da (diff) | |
download | poky-53cebfdfcc189a65de82eccdbd18acf4d979e624.tar.gz |
netbase/base-files: move /etc/hosts from netbase to base-files
Move /etc/hosts to base-files, and also add entry to it according
to hostname setting. This fixes the problem of commands like
`hostname -f' failing due to lack of such entry.
(From OE-Core rev: 31e6d08f20a804fccb958e19045d8f9e9806071a)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/base-files/base-files')
-rw-r--r-- | meta/recipes-core/base-files/base-files/hosts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-core/base-files/base-files/hosts b/meta/recipes-core/base-files/base-files/hosts new file mode 100644 index 0000000000..b94f414d5c --- /dev/null +++ b/meta/recipes-core/base-files/base-files/hosts | |||
@@ -0,0 +1,8 @@ | |||
1 | 127.0.0.1 localhost.localdomain localhost | ||
2 | |||
3 | # The following lines are desirable for IPv6 capable hosts | ||
4 | ::1 localhost ip6-localhost ip6-loopback | ||
5 | fe00::0 ip6-localnet | ||
6 | ff00::0 ip6-mcastprefix | ||
7 | ff02::1 ip6-allnodes | ||
8 | ff02::2 ip6-allrouters | ||