diff --git a/build.sh b/build.sh index 47aca72..9859296 100644 --- a/build.sh +++ b/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' diff --git a/files/etc/hosts b/files/etc/hosts new file mode 100644 index 0000000..a0163bd --- /dev/null +++ b/files/etc/hosts @@ -0,0 +1,2 @@ +127.0.0.1 localhost +127.0.0.1 barnacleos.local barnacleos diff --git a/patches/02-hosts.diff b/patches/02-hosts.diff deleted file mode 100644 index 464629a..0000000 --- a/patches/02-hosts.diff +++ /dev/null @@ -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 diff --git a/patches/series b/patches/series index d83ba3d..611a5de 100644 --- a/patches/series +++ b/patches/series @@ -1,4 +1,3 @@ -02-hosts.diff 03-passwordless-sudo.diff 04-bashrc.diff 05-useradd.diff