Arch Linux ARM ethernet card rename (eth0 to end0)
Yesterday I installed updates and rebooted my Arch Linux rpi before going to sleep.
First of all, this is a mistake because you shouldn’t install updates if you don’t have time to troubleshoot the fallout 🥲
Secondly, I discovered I no longer had network access to my rpi.
Today, after troubleshooting, I figured out the problem.
Recovering from no-connectivity checklist
- Ensure you have a user-password login
I didn’t, because I only connected to this machine with ssh key auth.- Grab the root storage, mount on another laptop
- Grant yourself a password by editing
/etc/shadow
manually. - Reassemble things back
- Connect display / keyboard, boot and login
ip addr show
to see what’s wrong with the network interface- Manually connect wifi, if the interface is still there
Arch Wiki
I created a temporary no encryption network to go around having to deal with WPA supplicant.
You might want to create/etc/systemd/network/wlan0.network
based on/etc/systemd/network/eth0.network
so you’ll have DHCP. - Continue troubleshooting via SSH.
Note that if you restart things, you might lose your wifi config - After surviving a reboot, you can disconnect things, delete your password etc.
The real problem
It seems some update in the last weeks caused the first network interface to change from eth0
to end0
.
I’m not sure what’s the prereqs (maybe having Docker installed is involved), but I found some complaints about it, so it’s not just me.
Creating a end0
config in /etc/systemd/network
solved my problem, and things are back to normal.