[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: d-i changes around Mirror Hostname/Directory?



Hi Shane,

Shane Gibson <sygibson@gmail.com> (2019-07-16):
> I work on infrastructure provisioning automation (Digital Rebar
> Provision).  We're adding in Buster support right now.  Bumped in to an
> issue with d-i and our preseed we normally use.  A working Stretch preseed
> "mostly works" - but requires interactive input for "mirror hostname" and
> "mirror directory".
> 
> I tried to set:
> 
> d-i mirror/protocol string https
> d-i mirror/http/hostname string mirrors.edge.kernel.org
> d-i mirror/http/directory string /debian
> 
> 
> However, this causes the installation to fail with a hard error.

It would help to see what error message you're getting…

> My question:  Are there any pointers for changes around the
> "select-mirror" processing bits, and/or the preseed that need to be
> made to support Buster for automated deployment?

That component is called choose-mirror and its repository is here:
  https://salsa.debian.org/installer-team/choose-mirror

Looking at versions:

  kibi@armor:~/debian-installer/packages/choose-mirror$ rmadison choose-mirror
  choose-mirror | 2.62          | oldoldstable | source, all
  choose-mirror | 2.79+deb9u1   | oldstable    | source, all
  choose-mirror | 2.99          | stable       | source, all
  choose-mirror | 2.99          | testing      | source, all
  choose-mirror | 2.99          | unstable     | source, all

so you want to be checking what happened between tags 2.79+deb9u1 and
2.99. Excluding translations, that's about:

  kibi@armor:~/debian-installer/packages/choose-mirror$ COLUMNS=80 git diff --stat 2.79+deb9u1..2.99 -- . ':(exclude)debian/po/*'
   debian/changelog                           | 234 ++++++++++++++++++++++++-----
   debian/choose-mirror-bin.templates.http-in |   3 +-
   debian/control                             |   6 +-
   mirrors.h                                  |   2 +-
   4 files changed, 206 insertions(+), 39 deletions(-)

> I have dug through the News archives for the Buster release, and see
> that there are changes around the Mirror list, and references to other
> changes, but I could not find a cohesive list of what might have
> changed.  My apologies if I missed something there.

Having written those entries, and checking the above-mentioned diff
briefly, I don't think you've missed anything. The major change is
defaulting to deb.debian.org instead of the historical ftp.<CC>.d.o
for many countries.

> Example of a fully working Stretch preseed:
>   https://gist.github.com/sygibson/450f4529920cf86b58102267ed0ed085
> Examples of a pressed with hostname/directory - that did NOT work:
>   https://gist.github.com/sygibson/44acbeb71510ed24587de76d31d5f26a

Quoting the preseed files in full is always a good idea, but I'm
personally not going to try and replicate locally.


Please quote the error message, and possibly extract the full syslog
file (/var/log/syslog); you might need to compress it due to size limits
on the Debian mailing lists. More about reporting installation issues:
  https://www.debian.org/releases/buster/amd64/ch05s04.en.html#problem-report


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

Attachment: signature.asc
Description: PGP signature


Reply to: