LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   reset/remove udev persistent-net-rules (https://www.linuxquestions.org/questions/debian-26/reset-remove-udev-persistent-net-rules-878080/)

cccc 04-30-2011 09:33 PM

reset/remove udev persistent-net-rules
 
hi

I should create a sqeeze image and install it on other computers.
Udev should detect network card (NIC) module and load it automatically at startup.
How I understand /lib/udev/rules.d/75-persistent-net-generator.rules runs when udev starts, then writes to /etc/udev/rules.d/70-persistent-net.rules.
The problem is, udev searches for this NIC on other hardware and the network cannot start.
I can solve this problem easily using a startup script to delete /etc/udev/rules.d/70-persistent-net.rules file.
Is it any other way instead of a startup script?

catkin 05-02-2011 05:57 AM

How about deleting the rule before making the image?

cccc 05-02-2011 06:00 AM

Quote:

Originally Posted by catkin (Post 4343723)
How about deleting the rule before making the image?

Thx, that's a good idea.

bkorb 06-29-2012 11:46 AM

There is still the problem that occasionally one must update the master copy of the image and it is way, way too easy to forget to kill off that dad-blasted 70-persistent-net.rules piece of dung. I realize it saves 0.001 seconds every time you boot, but it would take millions of boots to make up for the lost time dealing with the network code futilely looking for a non-existent MAC address. I'll keep looking...


All times are GMT -5. The time now is 02:37 AM.