From nobody@FreeBSD.org  Mon Dec 19 00:59:38 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AA738106567A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Dec 2011 00:59:38 +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 993478FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Dec 2011 00:59:38 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBJ0xcdj043866
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Dec 2011 00:59:38 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pBJ0xcea043865;
	Mon, 19 Dec 2011 00:59:38 GMT
	(envelope-from nobody)
Message-Id: <201112190059.pBJ0xcea043865@red.freebsd.org>
Date: Mon, 19 Dec 2011 00:59:38 GMT
From: Thomas Dean <tomdean@speakeasy.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: boot/loader.conf not processed at boot time
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163442
>Category:       amd64
>Synopsis:       boot/loader.conf not processed at boot time
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 19 01:00:21 UTC 2011
>Closed-Date:    Tue Dec 20 18:55:21 UTC 2011
>Last-Modified:  Tue Dec 20 18:55:21 UTC 2011
>Originator:     Thomas Dean
>Release:        9.0(RC2)
>Organization:
Home
>Environment:
FreeBSD P9X79.tddhome 9.0-PRERELEASE FreeBSD 9.0-PRERELEASE #0: Tue Dec  6 10:37:44 PST 2011     root@P9X79:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
# cat /boot/loader.conf
cpuctl_load="YES"
nvidia_load="YES"
linux_load="YES"

# reboot

< login >
# kldstat
 1   27 0xffffffff80200000 fdc000   kernel
 2    1 0xffffffff81412000 328d     ng_ubt.ko
 3    1 0xffffffff81416000 8b3d     ng_hci.ko
 4    3 0xffffffff8141f000 a79      ng_bluetooth.ko
 5    5 0xffffffff81420000 8e12     netgraph.ko
 6    1 0xffffffff81429000 b4a2     ng_l2cap.ko
 7    1 0xffffffff81435000 1695e    ng_btsocket.ko
 8    1 0xffffffff8144c000 1ba9     ng_socket.ko

# ls /boot/kernel|grep cpuctl
cpuctl.ko*
cpuctl.ko.symbols*
# ls /boot/modules | grep nvidia
nvidia.ko*

# kldload linux
# kldload cpuctl
# kldload nvidia
# kldstat
 1   27 0xffffffff80200000 fdc000   kernel
 2    1 0xffffffff81412000 328d     ng_ubt.ko
 3    1 0xffffffff81416000 8b3d     ng_hci.ko
 4    3 0xffffffff8141f000 a79      ng_bluetooth.ko
 5    5 0xffffffff81420000 8e12     netgraph.ko
 6    1 0xffffffff81429000 b4a2     ng_l2cap.ko
 7    1 0xffffffff81435000 1695e    ng_btsocket.ko
 8    1 0xffffffff8144c000 1ba9     ng_socket.ko
 9    1 0xffffffff8144e000 1e17b    linux.ko
10    1 0xffffffff8146d000 d48      cpuctl.ko
11    1 0xffffffff8146e000 a34f1d   nvidia.ko

If I put linux_enable="YES" in etc/rc.conf then linux is loaded on boot.  But,
 cpuctl="YES" or nvidia="YES" do not have similar effects..

Has 9.0 dropped loader.conf?  The man pages still refer to it and say that is
the way to load modules at boot time.

In /boot/defaults/loader.conf, I see
loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local"

/boot/nextboot.conf does not exist.

# cat /boot/loader.rc
\ Loader.rc
\ $FreeBSD: releng/9.0/sys/boot/i386/loader/loader.rc 151874 2005-10-30 05:41:42Z scottl $
\
\ Includes additional commands
include /boot/loader.4th

\ Reads and processes loader.conf variables
start

\ Tests for password -- executes autoboot first if a password was defined
check-password

\ Load in the boot menu
include /boot/beastie.4th

\ Start the boot menu
beastie-start


>How-To-Repeat:
Install cpuctl and nvidia
Create/edit /boot/loader.conf
reboot
>Fix:


>Release-Note:
>Audit-Trail:

From: Rainer Hurling <rhurlin@gwdg.de>
To: Thomas Dean <tomdean@speakeasy.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: amd64/163442: boot/loader.conf not processed at boot time
Date: Mon, 19 Dec 2011 07:57:27 +0100

 > If I put linux_enable="YES" in etc/rc.conf then linux is loaded on boot.  But,
 >   cpuctl="YES" or nvidia="YES" do not have similar effects..
 
 For me it is nvidia_load="YES" and cpuctl_load="YES" which works in 
 /boot/loader.conf. Could you please try it?
 
 Rainer
State-Changed-From-To: open->closed 
State-Changed-By: avg 
State-Changed-When: Tue Dec 20 18:54:35 UTC 2011 
State-Changed-Why:  
Reporter says this was not an issue with FreeBSD boot chain. 

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