Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33577 - ebuilds for 2.6 based kernels should create /sys directory
Summary: ebuilds for 2.6 based kernels should create /sys directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-15 16:30 UTC by Eric Harney
Modified: 2004-02-01 18:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Harney 2003-11-15 16:30:00 UTC
I think it would be a good idea for ebuilds for 2.6 kernels to automatically
create the /sys directory which is used for sysfs (if it doesn't exist already).
 I've been running 2.6 for a while and didn't realize this should even be done,
and it seems like a harmless thing to do.  If there is some good reason to not
do this, it would be nice to add something about it to the messages printed out
at the end of an emerge.

Reproducible: Always
Steps to Reproduce:
Comment 1 Brian Jackson (RETIRED) gentoo-dev 2003-11-15 16:57:46 UTC
Actually tseng and I were talking about this one night, and we thought it might be a good thing for the init scripts to automagically create a /sys if the kernel is 2.5+. I don't know if anybody looked into it after we talked about it, but maybe I can check what (if anything) has been done.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-16 14:59:35 UTC
I do not see why the initscript should do this - they already handle the
case where an /sys do exist, and warn if there is none.  This is more a
case where baselayout should create one like /proc is done, but until
2.6 goes mainline, I do not think it should so by default.  Maybe if it
detects a 2.6 kernel?
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-11-24 14:21:51 UTC
... Maybe the `eclass' should do this after merging a kernel if ${KV} >= KERNEL_VERSION(2,6,0)...
Comment 4 John Mylchreest (RETIRED) gentoo-dev 2004-02-01 18:35:33 UTC
the new kernel-2 eclass should do this already.
as for the originaly kernel eclass, I think thats a maintainer issue :)