First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 186156
Alias:
Product:
Component:
Status: NEW
Resolution:
Assigned To: udev maintainers <udev-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Roy Marples (RETIRED) <uberlord@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 186156 depends on: Show dependency tree
Show dependency graph
Bug 186156 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)









View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-07-21 22:02 0000
On Sat, 2007-07-21 at 17:22 -0400, Mike Frysinger wrote:
On Saturday 21 July 2007, Roy Marples wrote:
> > On Sat, 2007-07-21 at 21:28 +0100, Roy Marples wrote:
> > > On Sat, 2007-07-21 at 22:22 +0200, Tobias Klausmann wrote:
> > > > Is there a common bug to report snags to? I've hit one:
> > > > /etc/init.d/net.eth0 used to be a symlink to net.lo. After
> > > > installing, it was gone (I figure it went with baselayout-1).
> > > > Luckily, I have direct console access, otherwise the machine
> > > > would have been gone after the reboot. Definitely something to
> > > > yell about during merging.
> > >
> > > We don't ship with net.eth0 because there is no guarantee an interface
> > > called eth0 exists. net.lo (net.lo0 in *BSDs) always exists so we just
> > > ship that.
> >
> > One very good idea would be to get udev to create any net links that do
> > not exist to net.lo
> >
> > Then we truly have plug and play :)
> 
> indeed, that'd be sleeky and sexy ... go file a bug ;)
> -mike 

Best make it configurable though :)

------- Comment #1 From SpanKY 2007-07-21 22:16:57 0000 -------
by definition, files in /etc/udev/ are configurable since they're
CONFIG_PROTECT-ed

------- Comment #2 From Jakub Moc 2007-07-22 06:10:39 0000 -------
This might not be such a good idea for some WLAN drivers (such as rt2500),
besides wlanX it would also create a bogus wmasterX symlink to net.lo which
should not exist, it's not a real interface.

------- Comment #3 From Roy Marples (RETIRED) 2007-07-22 10:26:25 0000 -------
Which is why I said there should be a configure option to turn it on/off. Or
maybe a masking based on name.

BTW, the rt2500 driver only makes the ra0 interface. It's the rt2x00 driver
that makes these, and you only have upstream to blame for that crappy idea.

------- Comment #4 From Kalin KOZHUHAROV 2007-07-22 17:16:59 0000 -------
Isn't this issue hit only when upgrading baselayout?

If so, just preserving any existing symlinks to net.lo* should be sufficient.

The current behavior of baselayout-1 is bug on its own (of owning net.eth0).

So staying focused on the initial report (changing the subject of this bug)
will be easier and quicker, IMHO.

------- Comment #5 From Roy Marples (RETIRED) 2007-07-23 06:46:11 0000 -------
For madwifi (and hopefully the others), `ip a` shows link/ieee802.11 for the
controlling interface wifi0. So udev can take this into account and skip the
creation of the link.

------- Comment #6 From Matthias Schwarzott 2007-08-03 13:25:48 0000 -------
Perhaps someone can attach either working code (using sysfs) or at least
udevinfo -a -p /sys/class/net/DEVICE where DEVICE is one we should not create a
link to.

------- Comment #7 From cruzki 2007-08-16 23:47:53 0000 -------
I don't know if it's related, but I have a problem with the inits scripts. I
remove from boot and default net.eth0 and net.wlan0 but both are still load and
configured. I also remove net.lo but the problem still present. This is a
problem because I ran in a laptop and when both interface are up, for some
reason, the wired one have sort of "preference", and until I shoot down
net.eth0 manually I don't have any connection. This is a VERY big problem if
you have users that don't have permission (or you don't want to have) as they
can't shoot down net.eth0.

I run baselayout-2rc2_r1 in a ~x86 machine.

------- Comment #8 From Roy Marples (RETIRED) 2007-08-21 12:49:07 0000 -------
(In reply to comment #6)
> Perhaps someone can attach either working code (using sysfs) or at least
> udevinfo -a -p /sys/class/net/DEVICE where DEVICE is one we should not create a
> link to.
> 

My madwifi created wifi0 interface has these values, which are different from
the real interface
ATTR{type}=="801"
ATTR{features}=="0x0"

------- Comment #9 From Matthias Schwarzott 2007-09-25 18:13:48 0000 -------
(In reply to comment #8)
> 
> My madwifi created wifi0 interface has these values, which are different from
> the real interface
> ATTR{type}=="801"
> ATTR{features}=="0x0"
> 
First idea: Only auto-create the net.* link if ATTR{type} is "1".

First Last Prev Next    No search results available      Search page      Enter new bug