Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

udev rule not 'used' till after reloading module

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
greg-905
Posts: 1
Joined: 2017-09-12 15:07

udev rule not 'used' till after reloading module

#1 Post by greg-905 »

Hello,

The intention is to rename a NIC. This particular card is a 10Gbit Chelsio using the cxgb4 driver.

I made an entry into /etc/udev/rules.d/70-persistant.rules which doesn't seem to work as expected when the system is coming up. The interface comes up with the 'old' name.

After the system is up if I do a "rmmod cxgb4 && modprobe cxgb4", the interface comes up with the name we wish to use.

Is there a way I can correct this? I've changed the names of other interfaces and never experienced this issue before, not sure which is the best way to correct.

greg

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: udev rule not 'used' till after reloading module

#2 Post by debiman »

i'm guessing the module is being loaded before the udev rule executes.
maybe you can make that rmmod && insmod part of the udev rule?
does seem a bit hackish though.
can't you post the rule in question?

User avatar
ralph.ronnquist
Posts: 342
Joined: 2015-12-19 01:07
Location: Melbourne, Australia
Been thanked: 6 times

Re: udev rule not 'used' till after reloading module

#3 Post by ralph.ronnquist »

Did you rebuild initrd after having fixed the rule file?

Code: Select all

# update-initramfs -u -k all
Otherwise it's not in the pre-pivot udev environment (in initrd), which is used when the module is first loaded.

Post Reply