# Predictable network interface names with read-only diskless system

**URL:** https://forums.rockylinux.org/t/predictable-network-interface-names-with-read-only-diskless-system/5644
**Category:** Rocky Linux Help & Support
**Created:** [March 18, 2022, 12:52pm UTC](https://forums.rockylinux.org/t/predictable-network-interface-names-with-read-only-diskless-system/5644 "2022-03-18T12:52:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![milo](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/milo/32/1808_2.png) [@milo](https://forums.rockylinux.org/u/milo)
#### Post date: [March 18, 2022, 12:52pm UTC](https://forums.rockylinux.org/t/predictable-network-interface-names-with-read-only-diskless-system/5644/1 "2022-03-18T12:52:44Z")

</div>

Hi,

first of all thanks for bringing Rocky to life and all the fantastic work you do!

I’m preparing a stateless diskless installation with Rocky, i.e. a read-only nfsroot (not sure this is relevant though).  
Almost everything is working fine to our needs - yet, I can’t get predictable network interface naming to work.

The journal says:

> Mar 18 00:38:28 systemd-udevd[618]: link\_config: autonegotiation is unset or enabled, the speed and duplex are not writable.  
> Mar 18 00:38:28 systemd-udevd[618]: Error changing net interface name ‘eth0’ to ‘enp3s0’: Device or resource busy  
> Mar 18 00:38:28 systemd-udevd[618]: could not rename interface ‘2’ from ‘eth0’ to ‘enp3s0’: Device or resource busy

Do I have to adapt the initramfs configuration?  
Currently, I’m only doing:

> dracut --no-hostonly --nolvmconf -m “nfs network base” --xz /boot/initramfs.pxe-4.18.0-348.20.1.rt7.150.el8\_5.x86\_64 4.18.0-348.20.1.rt7.150.el8\_5.x86\_64

Thanks in advance!

---

<div class="post-metadata">

### Author: ![milo](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/milo/32/1808_2.png) [@milo](https://forums.rockylinux.org/u/milo)
#### Post date: [March 23, 2022, 10:27am UTC](https://forums.rockylinux.org/t/predictable-network-interface-names-with-read-only-diskless-system/5644/2 "2022-03-23T10:27:29Z")

</div>

Any ideas how I can try to debug that?

---

<div class="post-metadata">

### Author: ![milo](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/milo/32/1808_2.png) [@milo](https://forums.rockylinux.org/u/milo)
#### Post date: [March 25, 2022, 8:26am UTC](https://forums.rockylinux.org/t/predictable-network-interface-names-with-read-only-diskless-system/5644/3 "2022-03-25T08:26:59Z")

</div>

Adding **systemd** , **systemd-initrd** and **dracut-systemd** modules to the dracut build call fixed the issue.  
That way the interface is renamed in the initrd stage **before** switching root.

I didn’t considered that as it was not necessary for RHEL 7.

---

<div class="post-metadata">

### Author: ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)
#### Post date: [August 25, 2023, 3:52am UTC](https://forums.rockylinux.org/t/predictable-network-interface-names-with-read-only-diskless-system/5644/4 "2023-08-25T03:52:54Z")

</div>


