From 6be1e868f0b02da8558cdc815a9cc688c1a45549 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 6 Sep 2023 17:55:43 -0700 Subject: [PATCH] Drop live-build/ubuntu-server/includes.chroot.ubuntu-server-minimal/etc/hosts /etc/hosts in an installed system comes from one of several places: - the netbase package which ships a sane default - scripts/casper-bottom/18hostname, which is mostly identical to the netbase one but sets a hostname to the flavor name - the installer which writes one to the target fs - chroot includes in livecd-rootfs A chroot include is only needed for images that don't include netbase (so don't inherit from the minimal seed), don't boot casper, and don't run an installer. NONE of these conditions are true for the ubuntu-server live image. And in addition, the /etc/hosts here differs from the others. So, remove it. --- .../includes.chroot.ubuntu-server-minimal/etc/hosts | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 live-build/ubuntu-server/includes.chroot.ubuntu-server-minimal/etc/hosts diff --git a/live-build/ubuntu-server/includes.chroot.ubuntu-server-minimal/etc/hosts b/live-build/ubuntu-server/includes.chroot.ubuntu-server-minimal/etc/hosts deleted file mode 100644 index 81684340..00000000 --- a/live-build/ubuntu-server/includes.chroot.ubuntu-server-minimal/etc/hosts +++ /dev/null @@ -1,9 +0,0 @@ -127.0.0.1 localhost.localdomain localhost -::1 localhost6.localdomain6 localhost6 - -# The following lines are desirable for IPv6 capable hosts -::1 localhost ip6-localhost ip6-loopback -fe00::0 ip6-localnet -ff02::1 ip6-allnodes -ff02::2 ip6-allrouters -ff02::3 ip6-allhosts