You are not logged in.

#1 2020-04-24 04:39:13

iTakeshi
Member
Registered: 2020-04-24
Posts: 2

[SOLVED] Enable predictable network interface names in ARCH_ISO

The predictable network interface names are disabled in ARCH_ISO, and it names the devices in old fashion like 'wlan0'.
How can I enable the predictable names in the ARCH_ISO?
I need it because I use a hand-made automatic installation script that retrieves interface names from `ip link` and generates systemd-networkd configuration files.

P.S.
At least until six months ago, the predictable name was enabled in ARCH_ISO. Why is it disabled by default?

Last edited by iTakeshi (2020-04-24 13:20:14)

Offline

#2 2020-04-24 09:55:55

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: [SOLVED] Enable predictable network interface names in ARCH_ISO

iTakeshi wrote:

Why is it disabled by default?

archiso device renaming is disabled for wireless interfaces (only):

progandy wrote:

The interface is called "wlan0" during installation, because the iso contains iwd. iwd is unable to cope with interface renaming, so the package disables that for wireless devices.

iwd 1.0 introduces the systemd network link configuration file:

This prevents udev from renaming the interface to wlp#s#. As a result the wireless link name wlan# is kept after boot.

If this results in issues try masking it.

Last edited by sabroad (2020-04-24 09:56:29)


--
saint_abroad

Offline

#3 2020-04-24 13:18:00

iTakeshi
Member
Registered: 2020-04-24
Posts: 2

Re: [SOLVED] Enable predictable network interface names in ARCH_ISO

Thanks for the pointer!
I found the following reply on the thread,

Trilby wrote:

I don't have a system with the renaming disabled to test this on, but the following may show the new name in the ID_NET_NAME_PATH field, or perhaps in the ID_NET_NAME_SLOT (as one two macines I have one uses the former and the other the latter):

udevadm test-builtin net_id /sys/class/net/wlan0

and I can get the name by

udevadm test-builtin net_id /sys/class/net/wlan0 2>&1 | grep ID_NET_NAME_PATH | cut -f 2 -d "="

Offline

Board footer

Powered by FluxBB