[systemd-devel] Udev won't rename interfaces that are already UP

Mantas Mikulėnas grawity at gmail.com
Wed Feb 18 12:12:32 PST 2015


On Wed, Feb 18, 2015 at 10:10 PM, Giancarlo Razzolini <grazzolini at gmail.com>
wrote:

> But, in both cases, I need to flush the interface and set it
> status to DOWN before the initramfs handle the init to systemd. I took a
> look at the: src/udev/udev-builtin-net_id.c file and it seems indeed
> that it won't rename an interface that is UP. An error is shown in the
> journalctl by udev saying the interface couldn't be renamed. I do handle
> with this already, but I was wondering if systemd-udevd shouldn't rename
> the interface regardless of it state, since the early userspace
>

It's so much not that udev won't do this – the kernel actually won't let it
to:

# ip link set eth0 up
# ip link set eth0 name fred0
RTNETLINK answers: Device or resource busy
#

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150218/3db514f2/attachment.html>


More information about the systemd-devel mailing list