This message was deleted.
# elemental
a
This message was deleted.
w
Hi Iosif! In this thread it's discussed how to use udev rules to do what you are asking: https://rancher-users.slack.com/archives/C028DVCAYLD/p1707985973943029?thread_ts=1707949588.754049&cid=C028DVCAYLD
b
thanks @witty-table-40840 for your response, but it doesn’t work when using udev, i’ve used the below file and it’s working:
Copy code
name: "Nic rename"
stages:
   initramfs:
     - name: "Nic rename"
       commands:
        - ip link set dev enp5s0f0 down
        - ip link set dev enp5s0f0 name ens1f0
        - ip link set dev ens1f0 up
w
Nicely done! Did you get an error using udev? Or rename simply not happening?
b
from what I remember, I did not get errors but it wasn’t working.. I don’t know why..
👍 1