Bug#580086: Messes up /etc/hosts on every call

Goswin von Brederlow goswin-v-b at web.de
Mon May 3 14:43:43 UTC 2010


Package: pbuilder
Version: 0.181
Severity: important

Hi,

I'm using pbuilder in an environment where local hostnames are
resolved via NIS. Since I do not want to pollute the builder chroot
with the NIS packages and don't want all hosts to be visible inside
the chroot anyway I have added the hostname for the local debian
mirror in /etc/hosts inside the chroot. Checking the base.tgz manually
I get:

$ cat etc/hosts
127.0.0.1       localhost
192.168.55.101  ql-dev
192.168.53.104  ql-bak

But when I run pbuilder --login or --build I get:

root at ql-dev:/# cat etc/hosts
127.0.0.1       localhost
192.168.55.101  ql-dev
192.168.53.101  ql-dev

which is the systems /etc/hosts file. It seems that every time
pbuilder unpacks the base.tgz it copies /etc/hosts <chroot/etc/hosts.


So how am I supposed to set a hosts entry?

MfG
	Goswin

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31.5-book-1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.5.5      Bootstrap a Debian system
ii  coreutils                     8.4-1      GNU core utilities
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  debianutils                   3.2.2      Miscellaneous utilities specific t
ii  debootstrap                   1.0.20     Bootstrap a basic Debian system
ii  wget                          1.12-1.1   retrieves files from the web

Versions of packages pbuilder recommends:
ii  devscripts                    2.10.61    scripts to make the life of a Debi
ii  fakeroot                      1.14.4-1   Gives a fake root environment
ii  sudo                          1.7.2p1-1  Provide limited super user privile

Versions of packages pbuilder suggests:
pn  cowdancer                     <none>     (no description available)
pn  gdebi-core                    <none>     (no description available)
pn  pbuilder-uml                  <none>     (no description available)

-- debconf information excluded





More information about the Pbuilder-maint mailing list