On 07.06.2025 01:35, Cyril Brulebois wrote:
Hallo Jörn,

Vielen Dank, lustiges Problem…

Jörn Heissler <deb-install-bugs-2...@wulf.eu.org> (2025-06-07):
installing trixie using PXE netboot no longer works for me.

The installation fails with "anna[8234] busybox wget does not support
https" right after the "Loading additional components" step.

The initrd from
https://deb.debian.org/debian/dists/trixie/main/installer-amd64/20250515/images/
contains "busybox-udeb 1:1.37.0-4 amd64" and "wget-udeb 1.25.0-2 amd64".

https://deb.debian.org/debian/dists/trixie/main/debian-installer/binary-amd64/Packages.xz
however references the newer busybox-udeb version "1:1.37.0-5".

The debian installer downloads and installs the new busybox-udeb,
which replaces the /bin/wget utility.

Hm. Why it replaces /bin/wget?  It shouldn't replace already existing
files, I'd say, and this needs to be fixed.

Yes, we've in d/rules:
        dh_link -pbusybox-udeb \
$$(grep -v sbin/init $b/udeb/busybox.links | sed 's|^|/bin/busybox |')

So, when things are installed, busybox-udeb is unpacked first, and
this creates /bin/wget symlink.  And next wget-udeb is unpacked,
which replaces /bin/wget with real executable.  Or does wget-udeb
installs to /usr/bin/wget?  Shouldn't dpkg complain if there's a
file conflict?

Oh, I don't think I've ever thought much about possible upgrades
there… Ouch.

Most likely, yes.  And it's been this way for years.  I'm not sure
now is the right time to fix this.

We've been using GNU wget for close to 10 years, and I suppose there's
absolutely no point in keeping the stripped-down wget in busybox-udeb.

   
https://salsa.debian.org/installer-team/debian-installer/-/commit/2f00c51a7ead982ae1cd71bee06c8416890196b6

Unless someone disagrees within the next few days, I'll probably adjust
the config in git, something along those lines I suppose (totally
untested):

     diff --git a/debian/config/pkg/udeb b/debian/config/pkg/udeb
     index 230dadc1d..9cfdb6e3c 100644
     --- a/debian/config/pkg/udeb
     +++ b/debian/config/pkg/udeb
     @@ -992,7 +992,7 @@ CONFIG_FEATURE_TFTP_PUT=y
      # CONFIG_TUNCTL is not set
      # CONFIG_FEATURE_TUNCTL_UG is not set
      CONFIG_VCONFIG=y
     -CONFIG_WGET=y
     +# CONFIG_WGET is not set
      # CONFIG_FEATURE_WGET_LONG_OPTIONS is not set
      CONFIG_FEATURE_WGET_STATUSBAR=y
      CONFIG_FEATURE_WGET_FTP=y

Yes, plus the other WGET-related stuff has to be turned off too.

I prepared this change, it's trivial to remove wget applet, but I'd
love to understand how it all worked before.

Thanks,

/mjt

Reply via email to