Bug#744939: live-build: bootstrap-{c,}debootstrap doesn't clean /etc/hosts
Package: live-build
Version: 4.0~alpha33-1
Severity: minor
Tags: upstream
Dear Maintainer,
I've encountered small issue in my new wheezy live system created with
lasest live-build:
user@debian:~$ sudo -i
sudo: unable to resolve host debian
root@debian:~# cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
root@debian:~# cat /etc/hostname
debian
root@debian:~#
I have no files in includes.chroot and no customisations at all,
only the package lists.
Otherwise, there is the correct /etc/hosts inside the running system prepared
with live-build 3.0.5-1:
127.0.0.1 localhost debian
Also, local chroot/etc/chroot file is present but empty in this case.
I've found that stable version of live-build is forcibly cleaning
/etc/hosts in /usr/lib/live/build/bootstrap_cdebootstrap:
140 # Deconfiguring cdebootstrap configurations
141 rm -f chroot/etc/apt/sources.list
142 rm -f chroot/etc/hosts
and /usr/lib/live/build/bootstrap_debootstrap:
144 # Deconfiguring debootstrap configurations
145 rm -f chroot/etc/hosts
So, the script chroot_hosts performs correctly later in the build process,
and live-config is able to create proper /etc/hosts during the live system boot.
But the bootstrap scripts from live-build 4.0 are written in Python 3 and
don't take care about /etc/hosts.
-- Package-specific info:
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=uk_UA.utf8, LC_CTYPE=uk_UA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-build depends on:
ii debootstrap 1.0.59
ii python3 3.3.4-1
Versions of packages live-build recommends:
ii cpio 2.11+dfsg-2
pn live-boot-doc <none>
pn live-config-doc <none>
ii live-manual-txt [live-manual] 1:4.0~alpha11-1
live-build suggests no packages.
-- no debconf information
Reply to: