On Fri, Aug 03, 2018 at 12:32:38AM +0200, Thorsten Glaser wrote: > Hi Mattia & Co, > > the announcement of the latest Policy had me review the way we > set up the network for disconnected-network builds in the chroot, > and found it was doing quite well already. > > I’m attaching a patch that makes sure /etc/hosts is also cleaned up. > You might wish to apply it with the next upload. Otherwise, I think > we’re good.
Good point.
Incidentally, I believe this is also related to:
#897662 [n| | ] [jenkins.debian.org] reproducible: is localhost unresolvable
in the build chroot?
And to that other bug I can't find right now about ensuring a resolvable
localhost in base chroots (probably in policy?)
> This patch also adds rm statements to make sure hardlinks on the
> replaced files are broken up.
Wow, this is clever…
But are we sure there are no side-effects? i.e. there are no packages
that rely on for example a install-time hardlink to /etc/resolv.conf…
although I'd probably call that a bug.
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
signature.asc
Description: PGP signature

