amd64/163442: boot/loader.conf not processed at boot time

Thomas Dean tomdean at speakeasy.org
Mon Dec 19 01:00:27 UTC 2011


>Number:         163442
>Category:       amd64
>Synopsis:       boot/loader.conf not processed at boot time
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 19 01:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-amd64 mailing list