From owner-freebsd-bugs Tue Apr 16 12:30:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6678337B419 for ; Tue, 16 Apr 2002 12:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3GJU2v21779; Tue, 16 Apr 2002 12:30:02 -0700 (PDT) (envelope-from gnats) Received: from sep.oldach.net (sep.oldach.net [194.180.25.6]) by hub.freebsd.org (Postfix) with ESMTP id 8587637B400 for ; 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 Reply-To: Helge Oldach To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/37153: "sysctl compat.linux" versus linux.ko Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37153 >Category: conf >Synopsis: "sysctl compat.linux" versus linux.ko >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 16 12:30:01 PDT 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message