#1871 closed enhancement (fixed)
Udev Network Interfaces
Reported by: | peter | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
NOTE: Typos fixed by Matthew. Some text provided by Dan for Udev included in the thread.
http://linuxfromscratch.org/pipermail/lfs-dev/2006-August/058117.html
Change History (6)
comment:1 by , 18 years ago
Description: | modified (diff) |
---|
comment:2 by , 18 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 , 18 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
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:
http://www.linuxfromscratch.org/lfs/view/development/chapter07/network.html
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 , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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. :-)
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:
http://linuxfromscratch.org/pipermail/lfs-dev/2006-August/058000.html