<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 18, 2015 at 10:10 PM, Giancarlo Razzolini <span dir="ltr"><<a href="mailto:grazzolini@gmail.com" target="_blank">grazzolini@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">But, in both cases, I need to flush the interface and set it<br>
status to DOWN before the initramfs handle the init to systemd. I took a<br>
look at the: src/udev/udev-builtin-net_id.c file and it seems indeed<br>
that it won't rename an interface that is UP. An error is shown in the<br>
journalctl by udev saying the interface couldn't be renamed. I do handle<br>
with this already, but I was wondering if systemd-udevd shouldn't rename<br>
the interface regardless of it state, since the early userspace<br></blockquote><div><br></div><div>It's so much not that udev won't do this – the kernel actually won't let it to:</div><div><br></div><div><div># ip link set eth0 up</div><div># ip link set eth0 name fred0</div><div>RTNETLINK answers: Device or resource busy</div></div><div>#</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>