Bug#806386: pbuilder: No more updates /etc/resolv.conf inside the chroot, hence no more DNS inside chroot after network change

Thorsten Glaser tg at mirbsd.de
Fri Nov 27 01:41:42 UTC 2015


Mattia Rizzolo dixit:

>Another is to use USENETWORK=yes the USENETWORK thing wass thought to
>isolate only the dpkg-buildpackage call, I really misused it in this

Yes.

>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.

That will not be enough (network is much more than just DNS).

On the other hand, DNS must be done with care, to not break
peoples’ testsuites. That means, resolv.conf may be empty,
the Solaris/GNU nsswitch must use files, may skip dns, but
/etc/hosts in the chroot probably needs two lines:

127.0.0.1 localhost $(hostname -f) $(hostname -s)
::1 localhost $(hostname -f) $(hostname -s)

Unfortunately, the intrinsics of several of the Solaris/GNU
things we don’t use in the BSD world (nsswitch, PAM, etc.)
are beyond the set of skills I’m good at, so I cannot give
definite advice. Best to ask others in addition.

bye,
//mirabilos
-- 
16:47⎜«mika:#grml» .oO(mira ist einfach gut....)      23:22⎜«mikap:#grml»
mirabilos: und dein bootloader ist geil :)    23:29⎜«mikap:#grml» und ich
finds saugeil dass ich ein bsd zum booten mit grml hab, das muss ich dann
gleich mal auf usb-stick installieren	-- Michael Prokop über MirOS bsd4grml



More information about the Pbuilder-maint mailing list