On Mon, Apr 27, 2020 at 02:38:04PM +0200, Marc Haber wrote: >On Sun, Apr 19, 2020 at 02:41:50AM +0200, Cyril Brulebois wrote: >> Marc Haber <mh+debian-packa...@zugschlus.de> (2020-04-13): >> > in the current version, debootstrap copies /etc/resolv.conf and >> > /etc/hostname from the host to the newly installed system. This is >> > possibly wrong if done during a system installation or from a rescue >> > system. Please offer an option to not copy /etc/resolv.conf (the >> > installed system might not have network at all) and to set the >> > hostname from debootstrap's command line or an environment variable. >> > >> > I am willing to provide a patch if you indicate willingness to review >> > and apply the patch. >> >> I'm not convinced it's worth it; passing a --no-resolv-conf-copy option >> vs. rm target/etc/resolv.conf? And the hostname is a sed call away… > >The problem with the hostanme is that package post-inst scipts might >pick up the wrong host name during the actual debootstrap run before an >external script can intervene. d'accord with /etc/resolv.conf.
ACK, that's a fair point. I'm used to fixing up this kind of thing after a debootstrap run. I'd be happy to look at a patch. -- Steve McIntyre, Cambridge, UK. st...@einval.com "The problem with defending the purity of the English language is that English is about as pure as a cribhouse whore. We don't just borrow words; on occasion, English has pursued other languages down alleyways to beat them unconscious and rifle their pockets for new vocabulary." -- James D. Nicoll