Bug#806386: pbuilder: No more updates /etc/resolv.conf inside the chroot, hence no more DNS inside chroot after network change
Mattia Rizzolo
mattia at mapreri.org
Thu Nov 26 23:36:22 UTC 2015
found 806386 0.221
severity 806386 important
user pbuilder at packages.debian.org
usertag 806386 pbuilder
thanks
On Thu, Nov 26, 2015 at 10:45:36PM +0100, Axel Beckert wrote:
> Since at least 0.221 (and including 0.221.1), possibly also already with
> 0.220, /etc/resolv.conf is no more updated inside the chroot, hence no
> more DNS inside chroot after a location change which implied different
> DNS servers, e.g. when having pbuilder installed on a laptop which
> connects to differnt networks between two "pbuilder update" runs:
This is caused due to the fix for #753944.
yeah, bad me.
Clearly I wrote the fix for that without thinking nor paying attention.
> Workaround:
>
> shell1 # pbuilder login --save-after-login
> shell2 # cp -pv /etc/resolv.conf /var/cache/pbuilder/build/*/etc/resolv.conf
> shell1 # exit
Another is to use USENETWORK=yes the USENETWORK thing wass thought to
isolate only the dpkg-buildpackage call, I really misused it in this
case.
Probably the better fix is to empty /etc/resolv.conf before the build
start and "rifill" it once the build is finished, since the hooks are
free to use the network at the user will.
comments?
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: http://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20151126/2bef51c8/attachment.sig>
More information about the Pbuilder-maint
mailing list