From hmo@sep.oldach.net  Tue Apr 16 12:20:38 2002
Return-Path: <hmo@sep.oldach.net>
Received: from sep.oldach.net (sep.oldach.net [194.180.25.6])
	by hub.freebsd.org (Postfix) with ESMTP id 8587637B400
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Apr 2002 12:20:37 -0700 (PDT)
Received: from sep.oldach.net (localhost [127.0.0.1])
	by sep.oldach.net (8.12.2/8.12.2/hmo15apr02) with ESMTP id g3GJKSaS045334;
	Tue, 16 Apr 2002 21:20:29 +0200 (CEST)
	(envelope-from hmo@sep.oldach.net)
Received: (from hmo@localhost)
	by sep.oldach.net (8.12.2/8.12.2/Submit) id g3GJKRTn045333;
	Tue, 16 Apr 2002 21:20:27 +0200 (CEST)
	(envelope-from hmo)
Message-Id: <200204161920.g3GJKRTn045333@sep.oldach.net>
Date: Tue, 16 Apr 2002 21:20:27 +0200 (CEST)
From: Helge Oldach <send-pr@oldach.net>
Reply-To: Helge Oldach <send-pr@oldach.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: "sysctl compat.linux" versus linux.ko
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37153
>Category:       conf
>Synopsis:       "sysctl compat.linux" versus linux.ko
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 16 12:30:01 PDT 2002
>Closed-Date:    Wed Apr 17 23:08:29 PDT 2002
>Last-Modified:  Wed Apr 17 23:08:29 PDT 2002
>Originator:     Helge Oldach
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD sep.oldach.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Tue Apr 16 00:27:21 CEST 2002 toor@sep.oldach.net:/usr/obj/usr/src/sys/GENERIC i386


>Description:

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'

>How-To-Repeat:
	
>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).
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: dougb 
State-Changed-When: Wed Apr 17 11:25:34 PDT 2002 
State-Changed-Why:  

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. 



Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Wed Apr 17 11:25:34 PDT 2002 
Responsible-Changed-Why:  

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. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=37153 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dougb 
State-Changed-When: Wed Apr 17 23:05:03 PDT 2002 
State-Changed-Why:  

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.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=37153 
>Unformatted:
