#5746 NORM Update.: msh0 interface with a bogus name (msh0_rename)
Zarro Boogs per Child
bugtracker at laptop.org
Fri Mar 21 22:27:01 EDT 2008
#5746: msh0 interface with a bogus name (msh0_rename)
----------------------+-----------------------------------------------------
Reporter: carrano | Owner: cscott
Type: defect | Status: new
Priority: normal | Milestone: Update.2
Component: distro | Version:
Resolution: | Keywords: review?
Verified: 0 | Blocking:
Blockedby: |
----------------------+-----------------------------------------------------
Changes (by Blaketh):
* cc: Blaketh (added)
Comment:
As the previous fix prevented NetworkManager from learning the existence
of wired interfaces,
Mike Stone and I have written a slightly less broad rule for udev that
disables all rules on msh* interfaces rather than all net interfaces.
This rule was released in olpc-utils-0.71-1, and is ready for testing.
Sadly this patch will not work well for laptops with more than one mesh
interface. Laptops with an Active Antenna may show race conditions unless
a more comprehensive fix is created.
My thoughts on a conservative way to write udev rules that will work
stably with such devices:
A) Device index should persist according to MAC address.
B) A pair of mesh, ethernet interfaces that share a MAC address should
share a device index.
C) It is hard for me to figure out whether a given device is libertas or
not, so for each device hwaddr I see I shall generate a pair of rules as
follows:
i) Find the appropriate index i for this MAC address in the persistence
store.
ii) The first rule takes devices named msh* with this MAC and renames
them msh$i.
iii) The second rule takes devices named eth* with this MAC and renames
them eth$1.
D) The storage will be in /etc/udevd/rules.d/70-persist-net.rules.
E) The generation shall take place in our fork of
/lib/udev/write_net_rules from the udev package in the extras/ directory.
Apologies for the poor formatting, but I am excited to attack more bugs!
--
Ticket URL: <http://dev.laptop.org/ticket/5746#comment:19>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list