On Wed, Mar 02, 2011 at 04:44:07PM +0100, Ferenc Wagner wrote: > Marc Haber <mh+debian-b...@zugschlus.de> writes: > > On Wed, Mar 02, 2011 at 01:41:58AM +0100, Ferenc Wagner wrote: > > > >> Marc Haber <mh+debian-b...@zugschlus.de> writes: > >> > >>> On Tue, Mar 01, 2011 at 04:28:16PM +0100, Marc Haber wrote: > >>> > >>>> I guess the following changes do kind of a job: > >>>> etc/udev/rules.d/69-bootif.rules (inside the installer's initrd) > >>>> ACTION=="add", SUBSYSTEM=="net", IMPORT{program}="bootif $attr{address}" > >>>> > >>>> Unfortunately, this seems to go a little too far. My test system comes > >>>> up with the second interface being the bootif, so it's eth1 without > >>>> these additions. > >>> > >>> This seems to be the fault of the additional rule which gives the > >>> impression that the rule is actually doing something. Even when I > >>> replace the bootif script with a call to true, I get multiple stanzas > >>> per interface in 70-persistent-net.rules. > >> > >> In my limited testing (with two Qemu interfaces) this didn't happen > >> after several > >> > >> # rm 70-persistent-net.rules > >> # udevadm trigger --verbose --action=add --subsystem-match=net > >> > >> cycles. > > > > Did you try with a multiprocessor VM? I guess that this is some > > threading/multiprocessing issue that multiple interfaces get processed > > at the same time, causing races. > > Maybe, I didn't try it on SMP. write_net_rules has some locking to > prevent such issues, though.
My rule hasn't, but it shouldn't do anything if the script is silent, should it? > >> Actually, your rule worked perfectly well, despite that you don't > >> reserve the eth0 name, just try to assign it even if it's taken > >> already. Unless I overlook something, this should be fixed. > > > > How do I reserve a name? > > By renaming eth0 to something else, unless it isn't the boot interface. So my script should print INTERFACE_NAME="foo0" to its standard output if invoked for an interface that is eth0 and not the boot interface? And who is responsible to rename it back into the ethx namespace? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org