Libre-flavor Debian 12 DHCP (ipv4 and DNS) break after first apt upgrade

I got a Solitude, booted into etherealOS, chose libre-computers and installed Debian 12 base on the eMMC.

Only using hardwired ethernet.

Upon boot first boot it all works fine, but after apt dist-upgrade the end0 interface loses its IPv4, I have to manually run dhclient to get an IP.

Also, there’s no DNS, so then I have to do a resolvectl dns end0 8.8.8.8

Any suggestions on this?

I can reproduce this 100% of the time, flashed the eMMC from EtherealOS a few times already with the same results.

no such problem with raspbian 12 image, switching to that instead.

Before you run apt dist-upgrade (when the ethernet is working), what kernel are you using?

After the upgrade (when the ethernet is not working), what kernel did you upgrade to?

When it’s not working, what do you see in dmesg | grep ethernet?

I had a similar issue with the ethernet on the Alta when trying to run a mainline kernel. It was because libre-computer kernel has an extra patch to retry connecting to the PHY via the mdio/mux.

Whatever ships in this image:

https://distro.libre.computer/ci/raspbian/12/2023-10-10-raspbian-bookworm-arm64%2Barm64.img.xz

After the upgrade (when the ethernet is not working), what kernel did you upgrade to?

Whatever kernel ships from the stable repos at this point in time.

I was watching apt update in the terminal and ethernet would break (by watching ping from a different machine) at some sets of packages, before it gets to a kernel upgrade.

I moved on to raspbian, spent an unnecessary amount of time trying to make this work.

Have you checked your power supply for brown out?

I use a PoE HAT for a power supply.

If PS was bad, wouldn’t I see the DHCP problems in all modes? I don’t see it with the debian image in the repo for etherealos flashing, I only see the problem when updating debian, so I really suspect specific packages in the update. I don’t see the problem with raspbian either.