Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#1871 closed enhancement (fixed)

Udev Network Interfaces

Reported by: peter Owned by: dnicholson@…
Priority: normal Milestone:
Component: Book Version: SVN
Severity: normal Keywords:

Description (last modified by dnicholson@…)

NOTE: Typos fixed by Matthew. Some text provided by Dan for Udev included in the thread.

Change History (6)

comment:1 by dnicholson@…, 17 years ago

Description: modified (diff)

Also, some text needs to be added to this page or the "Custom Symlinks" page about how udev basically uses /sys as it's root filesystem. See here:

comment:2 by Matthew Burgess, 17 years ago

What's the status on this one, Dan? It looks like Alex Merry's patch got applied upstream so we will have picked it up by now. Is the text about Udev using /sys as its root still required? I think it's pretty clear already, but then my judgement may be clouded by being aware of this very issue!

Also, what does this have to do with "Udev Network Interfaces" (the title of this ticket)? As far as I can see, the thread referenced doesn't touch on the subject of network interfaces at all.

comment:3 by dnicholson@…, 17 years ago

Owner: changed from lfs-book@… to dnicholson@…
Status: newassigned

Testing on udev-104, passing /sys/... to udevtest and udevinfo works. So, I'd suggest fixing all cases of udevtest and udevinfo in the book to prefixing the path with /sys. New users are only going to get confused by "sysfs is the root for udev".

As for why this is about network interfaces, the original problem reported by Peter was that the network devices section suggests referencing interfaces by their bus position when writing rules. But the book didn't say how to get the bus position.

Peter suggested using lspci, but since it would have to come from the host, I suggested looking at the symlink in /sys/class/net/*/device. Now we have that in the book:

So, this can be closed except for adding /sys to the example udev{test,info} commands. I'll fix that part up and close this.

comment:4 by, 17 years ago

Resolution: fixed
Status: assignedclosed

Well, I think I took care of the only instance of us still using udevtest without the /sys prefix in r7923 (while cleaning up the rest of symlinks.xml). Grepping the book shows that we only use udevtest once and udevinfo once; the udevinfo instance already used the /sys prefix.

Sounds like that's it for this ticket then, right? Reopen if that's not right, of course. :-)

comment:5 by dnicholson@…, 17 years ago

Nope, looks good to me. Thanks, Bryan.

comment:6 by Jeremy Huntwork, 16 years ago

Milestone: 6.3

Milestone 6.3 deleted

Note: See TracTickets for help on using tickets.