Bug 37153

Summary: "sysctl compat.linux" versus linux.ko
Product: Base System Reporter: send-pr <send-pr>
Component: confAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-STABLE   
Hardware: Any   
OS: Any   

Description send-pr 2002-04-16 20:30:01 UTC
Starting box into multi-user with /etc/sysctl.conf containing

	compat.linux.osname=FreeBSD
	compat.linux.osrelease=4.5-STABLE

(which values probably should be default, BTW :-)). However linux.ko
isn't yet loaded, hence rc.sysctl fails:

sysctl: unknown oid 'compat.linux.osname'
sysctl: unknown oid 'compat.linux.osrelease'

Fix: 

Don't know exactly. On one hand it is correct that /etc/rc sets OIDs as
soon as possible. On the other hand some OIDs cannot be set right away,
but require some dependencies.

We probably need two separate sets of rc.sysctl: setting OIDs "just
after starting" to go multi-user (i.e. early in /etc/rc), and the other
"just before finishing" /etc/rc (i.e. late in /etc/rc).
Comment 1 Doug Barton freebsd_committer freebsd_triage 2002-04-17 19:25:34 UTC
State Changed
From-To: open->analyzed


Have you updatd recently? I'm pretty sure I solved this problem in: 

/etc/rc: 
$FreeBSD: src/etc/rc,v 1.212.2.48 2002/04/15 00:44:13 dougb Exp $ 

/etc/rc.sysctl: 
$FreeBSD: src/etc/rc.sysctl,v 1.4.4.6 2002/04/15 00:44:13 dougb Exp $ 

Please make sure that your system is up to date before sending PR's. 



Comment 2 Doug Barton freebsd_committer freebsd_triage 2002-04-17 19:25:34 UTC
Responsible Changed
From-To: freebsd-bugs->dougb


Have you updatd recently? I'm pretty sure I solved this problem in: 

/etc/rc: 
$FreeBSD: src/etc/rc,v 1.212.2.48 2002/04/15 00:44:13 dougb Exp $ 

/etc/rc.sysctl: 
$FreeBSD: src/etc/rc.sysctl,v 1.4.4.6 2002/04/15 00:44:13 dougb Exp $ 

Please make sure that your system is up to date before sending PR's.
Comment 3 Doug Barton freebsd_committer freebsd_triage 2002-04-18 07:05:03 UTC
State Changed
From-To: analyzed->closed


No, actually... unless you can verify that the very latest 
sources don't solve the problem, you should do an upgrade 
before sending a PR. 

In any case, this problem is indeed solved in the latest 
version of /etc. I'm sure because I set the same exact 
sysctl's myself.