xref: /freebsd/stand/defaults/loader.conf (revision 40dbb06fa73cac37d57563c07e55efd0cabbd488)
1# This is loader.conf - a file full of useful variables that you can
2# set to change the default load behavior of your system. You should
3# not edit this file!  Put any overrides into one of the
4# loader_conf_files instead and you will be able to update these
5# defaults later without spamming your local configuration information.
6#
7# All arguments must be in double quotes.
8#
9
10###  Basic configuration options  ############################
11exec="echo Loading /boot/defaults/loader.conf"
12
13kernel="kernel"		# /boot sub-directory containing kernel and modules
14bootfile="kernel"	# Kernel name (possibly absolute path)
15kernel_options=""	# Flags to be passed to the kernel
16loader_conf_files="/boot/device.hints /boot/loader.conf"
17loader_conf_dirs="/boot/loader.conf.d"
18local_loader_conf_files="/boot/loader.conf.local"
19nextboot_conf="/boot/nextboot.conf"
20verbose_loading="NO"		# Set to YES for verbose loader output
21
22###  Splash screen configuration  ############################
23splash_bmp_load="NO"		# Set this to YES for bmp splash screen!
24splash_pcx_load="NO"		# Set this to YES for pcx splash screen!
25splash_txt_load="NO"		# Set this to YES for TheDraw splash screen!
26vesa_load="NO"			# Set this to YES to load the vesa module
27bitmap_load="NO"		# Set this to YES if you want splash screen!
28bitmap_name="splash.bmp"	# Set this to the name of the file
29bitmap_type="splash_image_data" # and place it on the module_path
30# Set boot_mute=YES to load these
31splash="/boot/images/freebsd-logo-rev.png"
32shutdown_splash="/boot/images/freebsd-logo-rev.png"
33
34###  Screen saver modules  ###################################
35# This is best done in rc.conf
36screensave_load="NO"		# Set to YES to load a screensaver module
37screensave_name="green_saver"	# Set to the name of the screensaver module
38
39###  Early hostid configuration ############################
40hostuuid_load="YES"
41hostuuid_name="/etc/hostid"
42hostuuid_type="hostuuid"
43
44###  Random number generator configuration  ##################
45# See rc.conf(5). The entropy_boot_file config variable must agree with the
46# settings below.
47entropy_cache_load="YES"		# Set this to NO to disable loading
48					# cached entropy at boot time
49entropy_cache_name="/boot/entropy"	# Set this to the name of the file
50entropy_cache_type="boot_entropy_cache"	# Required for the kernel to find
51					# the boot-time entropy cache. This
52					# must not change value even if the
53					# _name above does change!
54entropy_efi_seed="YES"			# Set this to NO to disable loading
55					# entropy from the UEFI hardware
56					# random number generator API
57entropy_efi_seed_size="2048"		# Set this to a different value to
58					# change the amount of entropy
59					# requested from EFI
60
61###  RAM Blacklist configuration  ############################
62ram_blacklist_load="NO"			# Set this to YES to load a file
63					# containing a list of addresses to
64					# exclude from the running system.
65ram_blacklist_name="/boot/blacklist.txt" # Set this to the name of the file
66ram_blacklist_type="ram_blacklist"	# Required for the kernel to find
67					# the blacklist module
68
69###  Microcode loading configuration  ########################
70cpu_microcode_load="NO"			# Set this to YES to load and apply a
71					# microcode update file during boot.
72cpu_microcode_name="/boot/firmware/ucode.bin" # Set this to the microcode
73					      # update file path.
74cpu_microcode_type="cpu_microcode"	# Required for the kernel to find
75					# the microcode update file.
76
77###  ACPI settings  ##########################################
78acpi_dsdt_load="NO"		# DSDT Overriding
79acpi_dsdt_type="acpi_dsdt"	# Don't change this
80acpi_dsdt_name="/boot/acpi_dsdt.aml"
81				# Override DSDT in BIOS by this file
82acpi_video_load="NO"		# Load the ACPI video extension driver
83
84###  Audit settings  #########################################
85audit_event_load="NO"		# Preload audit_event config
86audit_event_name="/etc/security/audit_event"
87audit_event_type="etc_security_audit_event"
88
89###  Initial memory disk settings  ###########################
90#mdroot_load="YES"		# The "mdroot" prefix is arbitrary.
91#mdroot_type="md_image"		# Create md(4) disk at boot.
92#mdroot_name="/boot/root.img"	# Path to a file containing the image.
93#rootdev="ufs:/dev/md0"		# Set the root filesystem to md(4) device.
94
95###  Loader settings  ########################################
96#loader_delay="3"		# Delay in seconds before loading anything.
97				# Default is unset and disabled (no delay).
98#autoboot_delay="10"		# Delay in seconds before autobooting,
99				# -1 for no user interrupts, NO to disable
100#print_delay="1000000"		# Slow printing of loader messages, useful for
101				# debugging.  Given in microseconds.
102#password=""			# Prevent changes to boot options
103#bootlock_password=""		# Prevent booting (see check-password.4th(8))
104#geom_eli_passphrase_prompt="NO" # Prompt for geli(8) passphrase to mount root
105bootenv_autolist="YES"		# Auto populate the list of ZFS Boot Environments
106#beastie_disable="NO"		# Turn the beastie boot menu on and off
107efi_max_resolution="1x1"	# Set the max resolution for EFI loader to use:
108				# 480p, 720p, 1080p, 1440p, 2160p/4k, 5k, or
109				# WidthxHeight (e.g. 1920x1080)
110#kernels="kernel kernel.old"	# Kernels to display in the boot menu
111kernels_autodetect="YES"	# Auto-detect kernel directories in /boot
112#loader_gfx="YES"		# Use graphical images when available
113#loader_logo="orbbw"		# Desired logo: orbbw, orb, fbsdbw, beastiebw, beastie, none
114#comconsole_speed="115200"	# Set the current serial console speed
115#console="vidconsole"		# Comma- or space-separated list of consoles
116#currdev="disk1s1a"		# Set the current device
117module_path="/boot/modules;/boot/firmware;/boot/dtb;/boot/dtb/overlays"	# Set the module search path
118module_blacklist="drm drm2 radeonkms i915kms amdgpu if_iwlwifi if_rtw88 if_rtw89"	# Loader module blacklist
119module_blacklist="${module_blacklist} nvidia nvidia-drm nvidia-modeset"
120#prompt="\\${interpret}"	# Set the command prompt
121#root_disk_unit="0"		# Force the root disk unit number
122#rootdev="disk1s1a"		# Set the root filesystem
123#dumpdev="disk1s1b"		# Set a dump device early in the boot process
124#tftp.blksize="1428"		# Set the RFC 2348 TFTP block size.
125				# If the TFTP server does not support RFC 2348,
126				# the block size is set to 512. Valid: (8,9007)
127#twiddle_divisor="16"		# >16 slows down the progress indicator;
128				# <16 speeds up the progress indicator.
129
130###  Kernel settings  ########################################
131# The following boot_ variables are enabled by setting them to any value.
132# Their presence in the kernel environment (see kenv(1)) has the same
133# effect as setting the given boot flag (see boot(8)).
134#boot_askname=""	# -a: Prompt the user for the name of the root device
135#boot_cdrom=""		# -C: Attempt to mount root file system from CD-ROM
136#boot_ddb=""		# -d: Instructs the kernel to start in the DDB debugger
137#boot_dfltroot=""	# -r: Use the statically configured root file system
138#boot_gdb=""		# -g: Selects gdb-remote mode for the kernel debugger
139#boot_multicons=""	# -D: Use multiple consoles
140#boot_mute=""		# -m: Mute the console
141#boot_pause=""		# -p: Pause after each line during device probing
142#boot_serial=""		# -h: Use serial console
143#boot_single=""		# -s: Start system in single-user mode
144#boot_verbose=""	# -v: Causes extra debugging information to be printed
145#init_path="/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init"
146			# Sets the list of init candidates
147#init_shell="/bin/sh"	# The shell binary used by init(8).
148#init_script=""		# Initial script to run by init(8) before chrooting.
149#init_chroot=""		# Directory for init(8) to chroot into.
150
151###  Kernel tunables  ########################################
152#hw.physmem="1G"		# Limit physical memory. See loader(8)
153#kern.dfldsiz=""		# Set the initial data size limit
154#kern.dflssiz=""		# Set the initial stack size limit
155#kern.hz="100"			# Set the kernel interval timer rate
156#kern.maxbcache=""		# Set the max buffer cache KVA storage
157#kern.maxdsiz=""		# Set the max data size
158#kern.maxfiles=""		# Set the sys. wide open files limit
159#kern.maxproc=""		# Set the maximum # of processes
160#kern.maxssiz=""		# Set the max stack size
161#kern.maxswzone=""		# Set the max swmeta KVA storage
162#kern.maxtsiz=""		# Set the max text size
163#kern.maxusers="32"		# Set size of various static tables
164#kern.msgbufsize="65536"	# Set size of kernel message buffer
165#kern.nbuf=""			# Set the number of buffer headers
166#kern.ncallout=""		# Set the maximum # of timer events
167#kern.ngroups="1023"		# Set the maximum # of supplemental groups
168#kern.sgrowsiz=""		# Set the amount to grow stack
169#kern.cam.boot_delay="10000"	# Delay (in ms) of root mount for CAM bus
170				# registration, useful for USB sticks as root
171#kern.cam.scsi_delay="2000"	# Delay (in ms) before probing SCSI
172#kern.ipc.maxsockets=""		# Set the maximum number of sockets available
173#kern.ipc.nmbclusters=""	# Set the number of mbuf clusters
174#kern.ipc.nsfbufs=""		# Set the number of sendfile(2) bufs
175#net.inet.tcp.tcbhashsize=""	# Set the value of TCBHASHSIZE
176#vfs.root.mountfrom=""		# Specify root partition
177#vm.kmem_size=""		# Sets the size of kernel memory (bytes)
178#debug.kdb.break_to_debugger="0" # Allow console to break into debugger.
179#debug.ktr.cpumask="0xf"	# Bitmask of CPUs to enable KTR on
180#debug.ktr.mask="0x1200"	# Bitmask of KTR events to enable
181#debug.ktr.verbose="1"		# Enable console dump of KTR events
182
183###  Module loading syntax example  ##########################
184#module_load="YES"		# loads module "module"
185#module_name="realname"		# uses "realname" instead of "module"
186#module_type="type"		# passes "-t type" to load
187#module_flags="flags"		# passes "flags" to the module
188#module_before="cmd"		# executes "cmd" before loading the module
189#module_after="cmd"		# executes "cmd" after loading the module
190#module_error="cmd"		# executes "cmd" if load fails
191
192### Firmware names mapping list
193iwm3160fw_type="firmware"
194iwm7260fw_type="firmware"
195iwm7265fw_type="firmware"
196iwm8265fw_type="firmware"
197iwm9260fw_type="firmware"
198iwm3168fw_type="firmware"
199iwm7265Dfw_type="firmware"
200iwm8000Cfw_type="firmware"
201iwm9000fw_type="firmware"
202