on Monday 27 September 2010 Andreas Taschner wrote:
Thank you for that hint, Uwe. I have created and tested a udev rule like this : SUBSYSTEM=="net", ACTION=="add", BUS=="pci", ID=="0000:04:04.0", KERNEL=="eth*", NAME="eth3" Applying that to an autoyast profile (which is using probably buggy syntax - I do not really understand the <rule> elements : ... <net-udev config:type="list"> <rule> <name>eth0</name> <rule>BUS</rule> <value>PCI</value> <rule>ID</rule> <value>0000:04:04.0</value> </rule>
this can not work. You can not have the same key twice there (rule and value). The second one will overwrite the first one. You can only have keys twice in a config:type="list" like in the <net-udev...> Unfortunately you can not simply write a config:type="list" anywhere you want. In the <rule>, you can't have keys twice.
<rule> <name>eth1</name> <rule>BUS</rule> <value>PCI</value> <rule>ID</rule> <value>0000:04:01.0</value>0000:04:04.0 </rule> </net-udev> ...
Although it works for eth0 (which is really great), the rest does not get picked up correctly and udev ends up setting its default rules for the remaining interfaces, resulting in this /etc/udev/rules.d/70-persistent-net.rules file :
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ID=="0000:04:04.0", NAME="eth0"
as you can see, only the second keys made it into the config.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", =="", NAME="" <<<<??????
this is a little bit weird though. I would have expected to see the name set and the ID too. Hmm. If you can reproduce that, I have to look at it or I have to ask Michal. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org