88a7f9eb70
Load the first of the following kernels to be found: ${kernel} if ${kernel} is an absolute path /boot/${kernel}/${kernel} /boot/${kernel}/${bootfile} ${kernel}/${kernel} ${kernel}/${bootfile} ${kernel} ${bootfile} The last instance of ${kernel} and ${bootfile} will be treated as a list of semicolon separated file names, and each will be tried in turn, from left to right. Also, for each filename loader(8) will try filename, filename.ko, filename.gz, filename.ko.gz, in that order, but that's not related to this code. This resulted in a major reorganization of the code, and much of what was accumulating on loader.4th was rightly transfered to support.4th. The semantics of boot-conf and boot also changed. Both will try to load a kernel the same as above. After a kernel was loaded, the variable module_path may get changed. Such change will happen if the kernel was found with a directory prefix. In that case, the module path will be set to ${directory};${module_path}. Next, the modules are loaded as usual. This is intended so kernel="xyzzy" in /boot/loader.conf will load /boot/xyzzy/kernel.ko, load system modules from /boot/xyzzy/, and load third party modules from /boot/modules or /modules. If that doesn't work, it's a bug. Also, fix a breakage of "boot" which was recently introduced. Boot without any arguments would fail. No longer. Also, boot will only unload/reload if the first argument is a path. If no argument exists or the first argument is a flag, boot will use whatever is already loaded. I hope this is POLA. That behavior is markedly different from that of boot-conf, which will always unload/reload. The semantics introduced here are experimental. Even if the code works, we might decide this is not the prefered behavior. If you feel so, send your feedback. (Yeah, this belongs in a HEADS UP or something, but I've been working for the past 16 hours on this stuff, so gimme a break.)
197 lines
7.7 KiB
Plaintext
197 lines
7.7 KiB
Plaintext
# This is loader.conf - a file full of useful variables that you can
|
|
# set to change the default load behavior of your system. You should
|
|
# not edit this file! Put any overrides into one of the
|
|
# loader_conf_files instead and you will be able to update these
|
|
# defaults later without spamming your local configuration information.
|
|
#
|
|
# All arguments must be in double quotes.
|
|
#
|
|
# $FreeBSD$
|
|
|
|
##############################################################
|
|
### Basic configuration options ############################
|
|
##############################################################
|
|
|
|
exec=".( Loading /boot/defaults/loader.conf ) cr"
|
|
|
|
kernel="/boot/kernel/kernel.ko"
|
|
kernel_options=""
|
|
|
|
userconfig_script_load="NO"
|
|
userconfig_script_name="/boot/kernel.conf"
|
|
userconfig_script_type="userconfig_script"
|
|
|
|
loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local"
|
|
|
|
verbose_loading="NO" # Set to YES for verbose loader output
|
|
|
|
|
|
##############################################################
|
|
### Splash screen configuration ############################
|
|
##############################################################
|
|
|
|
splash_bmp_load="NO" # Set this to YES for bmp splash screen!
|
|
splash_pcx_load="NO" # Set this to YES for pcx splash screen!
|
|
vesa_load="NO" # Set this to YES to load the vesa module
|
|
bitmap_load="NO" # Set this to YES if you want splash screen!
|
|
bitmap_name="/boot/splash.bmp" # Set this to the name of the bmp or pcx file
|
|
bitmap_type="splash_image_data"
|
|
|
|
|
|
##############################################################
|
|
### Loader settings ########################################
|
|
##############################################################
|
|
|
|
#autoboot_delay="10" # Delay in seconds before autobooting
|
|
bootfile="kernel" # Set the default boot file set
|
|
#console="vidconsole" # Set the current console
|
|
#currdev="disk1s1a" # Set the current device
|
|
module_path="/boot/modules;/modules;/boot/kernel" # Set the module search path
|
|
#prompt="\\${interpret}" # Set the command prompt
|
|
#root_disk_unit="0" # Force the root disk unit number
|
|
#rootdev="disk1s1a" # Set the root filesystem
|
|
|
|
|
|
##############################################################
|
|
### Kernel settings ########################################
|
|
##############################################################
|
|
|
|
#boot_askname="NO" # Prompt the user for the name of the root device
|
|
#boot_ddb="NO" # Instructs the kernel to start in the DDB debugger
|
|
#boot_gdb="NO" # Selects gdb-remote mode for the kernel debugger
|
|
#boot_single="NO" # Start system in single-user mode
|
|
#boot_userconfig="NO" # Run kernel's interactive device configuration program
|
|
#boot_verbose="NO" # Causes extra debugging information to be printed
|
|
#init_path="/sbin/init:/sbin/oinit:/sbin/init.bak:/stand/sysinstall"
|
|
# Sets the list of init candidates
|
|
|
|
|
|
##############################################################
|
|
### Kernel tunables ########################################
|
|
##############################################################
|
|
|
|
#kern.ipc.nmbclusters="" # Set the number of mbuf clusters
|
|
#kern.vm.kmem.size="" # Sets the size of kernel memory (bytes)
|
|
#machdep.pccard.pcic_irq="0" # Assigns PCCARD controller IRQ (0=polled)
|
|
#net.inet.tcp.tcbhashsize="" # Set the value of TCBHASHSIZE
|
|
|
|
|
|
##############################################################
|
|
### Filesystem and related modules #########################
|
|
##############################################################
|
|
|
|
# Filesystems
|
|
|
|
cd9660_load="NO" # ISO 9660 filesystem
|
|
coda_load="NO" # CODA filesystem
|
|
fdesc_load="NO" # Filedescriptors filesystem
|
|
kernfs_load="NO" # Kernel filesystem
|
|
mfs_load="NO" # Memory filesystem
|
|
msdos_load="NO" # FAT-12/16/32
|
|
nfs_load="NO" # NFS
|
|
ntfs_load="NO" # NTFS
|
|
nullfs_load="NO" # Null filesystem
|
|
portal_load="NO" # Portal filesystem
|
|
procfs_load="NO" # Process filesystem
|
|
umap_load="NO" # User-id map filesystem
|
|
union_load="NO" # Union filesystem
|
|
|
|
# Related stuff
|
|
|
|
ccd_load="NO" # Concatenated disk driver
|
|
vinum_load="NO" # Concatenated/mirror/raid driver
|
|
vn_load="NO" # Vnode driver
|
|
|
|
|
|
##############################################################
|
|
### Screen saver modules ###################################
|
|
##############################################################
|
|
|
|
# This is best done in rc.conf
|
|
|
|
screensave_load="NO" # Set to YES to load a screensaver module
|
|
screensave_name="green_saver" # Set to the name of the screensaver module
|
|
|
|
|
|
##############################################################
|
|
### Emulation modules ######################################
|
|
##############################################################
|
|
|
|
fpu_load="NO" # Floating point emulation
|
|
gnufpu_load="NO" # GNU floating point emulation
|
|
ibcs2_load="NO" # IBCS2 (SCO) emulation
|
|
ibcs2_coff_load="NO"
|
|
linux_load="NO" # Linux emulation
|
|
svr4_load="NO" # SystemV R4 emulation
|
|
streams_load="NO" # System V streams module
|
|
|
|
|
|
##############################################################
|
|
### Networking modules #####################################
|
|
##############################################################
|
|
|
|
if_disc_load="NO" # Discard device
|
|
if_ppp_load="NO" # Kernel ppp
|
|
if_sl_load="NO" # SLIP
|
|
if_tun_load="NO" # Tunnel driver (user process ppp)
|
|
ipfw_load="NO" # Firewall
|
|
|
|
|
|
##############################################################
|
|
### Networking drivers #####################################
|
|
##############################################################
|
|
|
|
miibus_load="NO" # miibus support, needed for some drivers
|
|
if_an_load="NO" # Aironet 4500/4800 802.11 wireless NICs
|
|
if_dc_load="NO" # DEC/Intel 21143 and various workalikes
|
|
if_fxp_load="NO" # Intel EtherExpress PRO/100B (82557, 82558)
|
|
if_rl_load="NO" # RealTek 8129/8139
|
|
if_sf_load="NO" # Adaptec Duralink PCI (AIC-6915 "starfire")
|
|
if_sis_load="NO" # Silicon Integrated Systems SiS 900/7016
|
|
if_sk_load="NO" # SysKonnect SK-984x series PCI gigabit ethernet
|
|
if_ti_load="NO" # Alteon Networks Tigon 1 and Tigon 2
|
|
if_tl_load="NO" # Texas Instruments TNETE100 ("ThunderLAN")
|
|
if_vr_load="NO" # VIA Rhine I and Rhine II
|
|
if_wb_load="NO" # Winbond W89C840F
|
|
if_wi_load="NO" # WaveLAN/IEEE 802.11 wireless NICs
|
|
if_wx_load="NO" # Intel Gigabit Ethernet
|
|
if_xl_load="NO" # 3Com Etherlink XL (3c900, 3c905, 3c905B)
|
|
|
|
##############################################################
|
|
### USB modules ############################################
|
|
##############################################################
|
|
|
|
usb_load="NO" # USB subsystem
|
|
udbp_load="NO" # USB double bulk pipe host 2 host cables
|
|
ugen_load="NO" # USB generic device, if all else fails ...
|
|
uhid_load="NO" # Human Interface Devices
|
|
ukbd_load="NO" # Keyboard
|
|
ulpt_load="NO" # Printer
|
|
ums_load="NO" # Mouse
|
|
umass_load="NO" # Mass Storage Devices
|
|
if_aue_load="NO" # ADMtek USB ethernet
|
|
if_cue_load="NO" # CATC USB ethernet
|
|
if_kue_load="NO" # Kawasaki LSI USB ethernet
|
|
|
|
##############################################################
|
|
### Other modules ##########################################
|
|
##############################################################
|
|
|
|
bktr_load="NO" # Brooktree Bt848/Bt878 TV/Video Capture Card
|
|
ispfw_load="NO" # Qlogic ISP Firmware
|
|
randomdev_load="NO" # Random device
|
|
|
|
|
|
##############################################################
|
|
### Module loading syntax example ##########################
|
|
##############################################################
|
|
|
|
#module_load="YES" # loads module "module"
|
|
#module_name="realname" # uses "realname" instead of "module"
|
|
#module_type="type" # passes "-t type" to load
|
|
#module_flags="flags" # passes "flags" to the module
|
|
#module_before="cmd" # executes "cmd" before loading the module
|
|
#module_after="cmd" # executes "cmd" after loading the module
|
|
#module_error="cmd" # executes "cmd" if load fails
|
|
|