Bug#391915: [Pbuilder-maint] Bug#391915: pbuilder: pbuilder-uml should not overwrite network configuration

Mattia Dongili malattia at linux.it
Fri Dec 8 16:09:44 CET 2006


On Mon, Oct 09, 2006 at 02:31:34PM +0200, Marcus Better wrote:
> Package: pbuilder
> Version: 0.159
> Severity: normal
> Tags: patch
> 
> pbuilder copies the system's /etc/{resolv.conf,hosts,hostname} to the
> build chroot. This is wrong for pbuilder-user-mode-linux, since the
> host information is not necessary correct for the guest.
> 
> For example if the host has "nameserver 0.0.0.0" in /etc/resolv.conf,
> then the UML guest will have a broken network configuration.
> 
> The following patch appears to fix it.

It looks quite sane to me. The only problem being that this assumes
you've correctly configured the domain and nameserver directives for
the [network]'s rootstrap module.
So one may want to copy resolv.conf if it doesn't exist (and only
resolv.conf).

-- 
mattia
:wq!




More information about the Pbuilder-maint mailing list