Package: ppp
Version: 2.4.9-1
Severity: normal
Tags: d-i newcomer patch

The debian-installer manual tells that you can use the boot-kernel-parameter
'modules=ppp-udev' to use a PPPoE connection during installation, which I had
used successfully on older (Jessie) versions. Now I want to use that feature in
Bullseye which fails. I have investigated the problem and found two reasons:

1) The ppp-udeb's postinst-script runs pppoe-discovery with the '-A' parameter,
which was deprecated and is removed in the version shipped with bullseye.
Thus ppp-discovery don't run successfully and the installer gives an
error message. I have fixed this successfully:


--- ppp-2.4.9/debian/ppp-udeb.postinst  2021-01-07 01:10:29.000000000 +0100
+++ ppp-udeb.postinst   2023-08-02 12:10:30.233592399 +0200
@@ -31,7 +31,7 @@
        db_progress START 0 $TOTWAIT ppp/detect_progress
        for P in "" "-U" ; do
                rm -f /tmp/probe-finished /tmp/ppp-errors
-               ( R=$(pppoe-discovery -A $P -I $1 2>/tmp/ppp-errors | \
+               ( R=$(pppoe-discovery $P -I $1 2>/tmp/ppp-errors | \
                        grep AC | wc -l)
                  echo $R > /tmp/probe-finished ) &
                WAIT=0


        
I found that the '-A' parameter is used in the current git master
branch, so this should affect more recent versions also.

2) In the bullseye installer, running ppp-udeb breaks with error messages for
missing libraries: libsystemd0, liblzma5 and libz4-1. I have
copied the entries for that libraries out of
'<installer-cd>/dists/bullseye/main/debian-installer/binary-amd64/Packages.gz'
into
'<installer-cd>/dists/bullseye/main/binary-amd64/Packages.gz',
which works fine for me, but I think there is a more elegant way
to do that. (But I'm not familiar to that. I also think that these libraries
are not needed to establish a PPPoE-connection.)

With this two fixes I got it working on my Bullseye USB Installer stick and I
have tested on BIOS and UEFI Virtual and Physical machines, but I don't know a
better way to commit that to the Debian project.



-- System Information:
Debian Release: 11.7
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, i386

Kernel: Linux 5.10.0-23-amd64 (SMP w/4 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to