Open bitonic opened 2 years ago
OK, I figured out why this is: the script just grabs ID_NET_NAME_PATH
, but if ID_NET_NAME_ONBOARD
is present that will be picked instead. In fact, the linked blog post lists how the name is chosen, and there are a few more options as well: https://major.io/2015/08/21/understanding-systemds-predictable-network-device-names/#picking-the-final-name .
So we should probably amend the script to pick the first of those which is present.
cc @nh2
I've just used the Hetzner install script to install on a newly rented server. The network interface name is detected to be
enp3s0
. However once I reboot into nixos, that is only thealtname
:While the altname works when manually configuring the network with the
ip
command, it seems to not work inconfiguration.nix
. Once I renameenp4s0
toeno1
inconfiguration.nix
things work at boot.