Add file /etc/hosts
This commit is contained in:
parent
91e06c12cc
commit
ff00d13a29
4 changed files with 3 additions and 11 deletions
3
build.sh
3
build.sh
|
@ -188,8 +188,7 @@ apply_file 644 '/lib/udev/rules.d/61-partuuid.rules'
|
|||
# Configure network.
|
||||
#
|
||||
apply_file 644 '/etc/hostname'
|
||||
|
||||
apply_patch '02-hosts.diff'
|
||||
apply_file 644 '/etc/hosts'
|
||||
|
||||
apply_file 644 '/etc/network/interfaces'
|
||||
apply_file 644 '/etc/network/interfaces.d/wlan0'
|
||||
|
|
2
files/etc/hosts
Normal file
2
files/etc/hosts
Normal file
|
@ -0,0 +1,2 @@
|
|||
127.0.0.1 localhost
|
||||
127.0.0.1 barnacleos.local barnacleos
|
|
@ -1,8 +0,0 @@
|
|||
--- rootfs.orig/etc/hosts
|
||||
+++ rootfs/etc/hosts
|
||||
@@ -1,4 +1,5 @@
|
||||
127.0.0.1 localhost
|
||||
+127.0.1.1 barnacleos.local barnacleos
|
||||
::1 localhost ip6-localhost ip6-loopback
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
|
@ -1,4 +1,3 @@
|
|||
02-hosts.diff
|
||||
03-passwordless-sudo.diff
|
||||
04-bashrc.diff
|
||||
05-useradd.diff
|
||||
|
|
Reference in a new issue