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. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421