Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228627 - init scripts and sysfs-less kernel
Summary: init scripts and sysfs-less kernel
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-20 21:18 UTC by Alexey Dobriyan
Modified: 2008-06-21 03:50 UTC (History)
0 users

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 Alexey Dobriyan 2008-06-20 21:18:24 UTC
1. /sbin/rc determines whether to mount sysfs simply by existence of /sys
   directory.

Which sucks because after booting sysfs-less kernel it will try to mount sysfs
anyway (with default parameters) and fail and init scripts will stop and ask
for password to "fix" the situation.

Constant mkdir and rm are annoying.

2. eth0 doesn't come up here if kernel is sysfs-less

Setup: two wired NICs, let's call them eth0 and eth1. eth1 connected to the
world, eth0 connected to laptop. eth0 netconsoles to laptop via kernel
netconsole= boot option. Kernel forcefully ups eth0 during boot.

config_eth0=( " 192.168.0.1 netmask 255.255.0.0 brd 192.168.0.255" )
config_eth1=( "10.0.3.154 netmask 255.255.254.0 brd 10.0.3.255" )
routes_eth1=( "default via 10.0.2.1" )

70-persistent-net.rules:

SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="MAC1", NAME="eth1"
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="MAC0", NAME="eth0"


After booting sysfs-less kernel eth0 is not up, requires manual "net.eth0 up",
after which works fine.

Looking at init scripts output, net.eth0 isn't even called, not fails.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-21 00:41:56 UTC
I don't think udev works without sysfs.
Comment 2 SpanKY gentoo-dev 2008-06-21 03:50:37 UTC
sysfs is considered required ... only in restricted embedded setups can you get by by disabling it, but it also requires a lot of changes elsewhere