You are not logged in.

#1 2013-11-13 13:00:15

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

[solved] error changing net interface name.. : Device or resource busy

Just formatted a PC, and my interface name is changing between eth0 and enp2s5 on reboots.

Journalctl gives:

systemd-udevd[154]: error changing net interface eth0 to enp2s5: Device or resource busy

(I didnt copy and paste this)

I found this https://bugs.freedesktop.org/show_bug.cgi?id=5692

I am using the dhcpcd service for now. Never had this problem before, also never used the dhcpcd service before.

Any ideas?

Last edited by jrussell (2013-11-13 13:18:40)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#2 2013-11-13 13:13:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: [solved] error changing net interface name.. : Device or resource busy

Do you want the name to be eth0 or enp2s5?

If the former, just use the symlink to prevent renaming:

ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules

How were you starting dhcpcd before you used the service?  Did you run it manually after booting, or in some other boot process?  If someother boot process called dhcpcd, that would likely explain the issue: dhcpcd started running on eth0 before the interface names were changed.  This could be remedied by either not having dhcpcd in that other boot process, or ensuring that process occurs at the right time (with After=, Requires=, etc)

EDIT: is that the wrong link?  That certainly has absolutely nothing to do with this.  That is a seven year old (resolved) poppler-glib issue: for displaying pdfs in a gui.

Last edited by Trilby (2013-11-13 13:15:31)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-11-13 13:13:40

msthev
Member
Registered: 2012-04-05
Posts: 177

Re: [solved] error changing net interface name.. : Device or resource busy

dhcpcd.service grabs the device before udev can change its name. Either use dhcpcd@enp2s5.service (which doesn't use the "background" option) or disable persistent naming.

Offline

#4 2013-11-13 13:18:16

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [solved] error changing net interface name.. : Device or resource busy

msthev wrote:

dhcpcd.service grabs the device before udev can change its name. Either use dhcpcd@enp2s5.service (which doesn't use the "background" option) or disable persistent naming.

Thanks for that, I can confirm that I dont have issues using netctl.


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

Board footer

Powered by FluxBB