Hey Santiago, thanks for the quick reaction!

On Wed, Oct 20, 2021 at 05:32:53PM +0200, Santiago Ruano Rincón wrote:
> 
> El 20/10/21 a las 15:31, Ralf Schlatterbeck escribió:
> > 
> > I'm trying to network-boot a thin client (orange-pi zero) with debian
> > bullseye and a custom kernel. NFS mount works fine but ifup fails
> > spectacularly. This works fine on debian buster (but may be kernel
> > specific, the debian buster setup has an older 5.9 kernel).
> 
> What are you network mount points?

The root filesystem is on NFS. So the mount-point is basically '/'.

> > Listening on LPF/eth0/02:42:b3:f0:2d:3e
> > Sending on   LPF/eth0/02:42:b3:f0:2d:3e
> > Sending on   Socket/fallback
> > Created duid "\000\001\000\001)\002\266\310\002B\263\360->".
> > DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
> > DHCPOFFER of 10.23.5.173 from 10.23.5.254
> > DHCPREQUEST for 10.23.5.173 on eth0 to 255.255.255.255 port 67
> > DHCPACK of 10.23.5.173 from 10.23.5.254
> > RTNETLINK answers: File exists
> > DHCPDECLINE of 10.23.5.173 on eth0 to 255.255.255.255 port 67
> 
> Your dhclient is declining all of the offered IPs…
> Are you sure they are available?

Yes they're all available, the dhcp server would not offer them if not.
I *think* this is done by the kernel: It will decline all attempts to
set an IP-Address different from the one where the root-filesystem is
mounted because that would kill the system.
Note that the very-first IP-Address offered above is the one the system
already has, in fact it is configured as a static IP for this MAC
address in the DHCP server. It should accept that even though the
interface is already up with that IP. So the error "RTNETLINK answers:
File exists" is probably the cause of all this. It did not occur on
earlier Debian version such as Buster (or it did occur and was ignored
by dhclient?).  It has worked for me as far back as Debian lenny.

I'll try to boot the system with debian buster but with the same new
kernel and report back.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   www.runtux.com
Reichergasse 131, A-3411 Weidling       email: off...@runtux.com

Reply via email to