From owner-freebsd-amd64@FreeBSD.ORG Thu Dec 20 16:40:00 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2FC288A for ; Thu, 20 Dec 2012 16:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7C0228FC18 for ; Thu, 20 Dec 2012 16:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBKGe0kJ072282 for ; Thu, 20 Dec 2012 16:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBKGe0IF072281; Thu, 20 Dec 2012 16:40:00 GMT (envelope-from gnats) Resent-Date: Thu, 20 Dec 2012 16:40:00 GMT Resent-Message-Id: <201212201640.qBKGe0IF072281@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olivier Smedts Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BCAD3839 for ; Thu, 20 Dec 2012 16:36:01 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A45B18FC0A for ; Thu, 20 Dec 2012 16:36:01 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBKGa1Q4082715 for ; Thu, 20 Dec 2012 16:36:01 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qBKGa1ZH082714; Thu, 20 Dec 2012 16:36:01 GMT (envelope-from nobody) Message-Id: <201212201636.qBKGa1ZH082714@red.freebsd.org> Date: Thu, 20 Dec 2012 16:36:01 GMT From: Olivier Smedts To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/174595: /etc/rc.d/sysctl : unknown oid 'XXX' X-Mailman-Approved-At: Thu, 20 Dec 2012 17:24:52 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2012 16:40:00 -0000 >Number: 174595 >Category: amd64 >Synopsis: /etc/rc.d/sysctl : unknown oid 'XXX' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 20 16:40:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Olivier Smedts >Release: 10-CURRENT >Organization: >Environment: FreeBSD zozo.afpicl.lan 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r244488: Thu Dec 20 15:21:07 CET 2012 root@zozo.afpicl.lan:/usr/obj/usr/src/sys/CORE amd64 >Description: Since the last commit (r244198) to /usr/src/etc/rc.d/sysctl, I've got this error at startup just after root is mounted : sysctl: unknown oid 'compat.linux.osrelease' at line 22: No such file or directory This is somewhat expected, because the linux compat kmod is only loaded after that by /etc/rc.d/abi (because of linux_enable="YES" in /etc/rc.conf, which is a common use case). The problem is that... there was no error before. I think the problem comes from the rewritten /usr/src/etc/rc.d/sysctl, which used ">/dev/null 2>&1" to avoid startup errors from being displayed. >How-To-Repeat: # echo 'compat.linux.osrelease=2.6.32' >> /etc/sysctl.conf # echo 'linux_enable="YES"' >> /etc/rc.conf # sed -i '' 's/^linux_load=/#linux_load=/' /boot/loader.conf # shutdown -r now >Fix: Add "2>&1" after "> /dev/null" in /usr/src/etc/rc.d/sysctl >Release-Note: >Audit-Trail: >Unformatted: