1b6955dfdSWarner Losh.\" Copyright (c) 1999 Daniel C. Sobral 2b6955dfdSWarner Losh.\" All rights reserved. 3b6955dfdSWarner Losh.\" 4b6955dfdSWarner Losh.\" Redistribution and use in source and binary forms, with or without 5b6955dfdSWarner Losh.\" modification, are permitted provided that the following conditions 6b6955dfdSWarner Losh.\" are met: 7b6955dfdSWarner Losh.\" 1. Redistributions of source code must retain the above copyright 8b6955dfdSWarner Losh.\" notice, this list of conditions and the following disclaimer. 9b6955dfdSWarner Losh.\" 2. Redistributions in binary form must reproduce the above copyright 10b6955dfdSWarner Losh.\" notice, this list of conditions and the following disclaimer in the 11b6955dfdSWarner Losh.\" documentation and/or other materials provided with the distribution. 12b6955dfdSWarner Losh.\" 13b6955dfdSWarner Losh.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14b6955dfdSWarner Losh.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15b6955dfdSWarner Losh.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16b6955dfdSWarner Losh.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17b6955dfdSWarner Losh.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18b6955dfdSWarner Losh.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19b6955dfdSWarner Losh.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20b6955dfdSWarner Losh.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21b6955dfdSWarner Losh.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22b6955dfdSWarner Losh.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23b6955dfdSWarner Losh.\" SUCH DAMAGE. 24*1dbbce97SAhmad Khalifa.Dd July 8, 2024 25b6955dfdSWarner Losh.Dt LOADER.CONF 5 26b6955dfdSWarner Losh.Os 27b6955dfdSWarner Losh.Sh NAME 28b6955dfdSWarner Losh.Nm loader.conf 29b6955dfdSWarner Losh.Nd "system bootstrap configuration information" 30b6955dfdSWarner Losh.Sh DESCRIPTION 31b6955dfdSWarner LoshThe file 32b6955dfdSWarner Losh.Nm 33b6955dfdSWarner Loshcontains descriptive information on bootstrapping the system. 34b6955dfdSWarner LoshThrough 35b6955dfdSWarner Loshit you can specify the kernel to be booted, parameters to be passed to 36b6955dfdSWarner Loshit, and additional modules to be loaded; and generally set all variables 37b6955dfdSWarner Loshdescribed in 38b6955dfdSWarner Losh.Xr loader 8 . 39b6955dfdSWarner Losh.Sh SYNTAX 40b6955dfdSWarner LoshThough 41b6955dfdSWarner Losh.Nm Ns 's 42b6955dfdSWarner Loshformat was defined explicitly to resemble 43b6955dfdSWarner Losh.Xr rc.conf 5 , 44b6955dfdSWarner Loshand can be sourced by 45b6955dfdSWarner Losh.Xr sh 1 , 46b6955dfdSWarner Loshsome settings are treated in a special fashion. 47b6955dfdSWarner LoshAlso, the 48b6955dfdSWarner Loshbehavior of some settings is defined by the setting's suffix; 49b6955dfdSWarner Loshthe prefix identifies which module the setting controls. 50b6955dfdSWarner Losh.Pp 51b6955dfdSWarner LoshThe general parsing rules are: 52b6955dfdSWarner Losh.Bl -bullet 53b6955dfdSWarner Losh.It 54b6955dfdSWarner LoshSpaces and empty lines are ignored. 55b6955dfdSWarner Losh.It 56b6955dfdSWarner LoshA # sign will mark the remainder of the line as a comment. 57b6955dfdSWarner Losh.It 58b6955dfdSWarner LoshOnly one setting can be present on each line. 59b6955dfdSWarner Losh.El 60b6955dfdSWarner Losh.Pp 61b6955dfdSWarner LoshAll settings have the following format: 62b6955dfdSWarner Losh.Pp 63b6955dfdSWarner Losh.Dl variable="value" 64b6955dfdSWarner Losh.Pp 65b6955dfdSWarner LoshUnless it belongs to one of the classes of settings that receive special 66b6955dfdSWarner Loshtreatment, a setting will set the value of a 67b6955dfdSWarner Losh.Xr loader 8 68b6955dfdSWarner Loshenvironment variable. 69b6955dfdSWarner LoshThe settings that receive special 70b6955dfdSWarner Loshtreatment are listed below. 71b6955dfdSWarner LoshSettings beginning with 72b6955dfdSWarner Losh.Qq * 73b6955dfdSWarner Loshbelow define the modules to be loaded and 74b6955dfdSWarner Loshmay have any prefix; the prefix identifies a module. 75b6955dfdSWarner LoshAll such settings sharing a common 76b6955dfdSWarner Loshprefix refer to the same module. 77b6955dfdSWarner Losh.Bl -tag -width Ar 7871f6aea4SDaniel Gerzo.It Ar autoboot_delay 7971f6aea4SDaniel GerzoDelay in seconds before automatically booting. 8071f6aea4SDaniel GerzoA user with console access will be able to interrupt the 8171f6aea4SDaniel Gerzo.Ic autoboot 8271f6aea4SDaniel Gerzoprocess and escape into the interactive mode by pressing a key on 8371f6aea4SDaniel Gerzothe console during this delay. 8471f6aea4SDaniel Gerzo.Pp 8571f6aea4SDaniel GerzoIf set to 8671f6aea4SDaniel Gerzo.Dq Li NO , 8771f6aea4SDaniel Gerzono 8871f6aea4SDaniel Gerzo.Ic autoboot 8971f6aea4SDaniel Gerzois automatically attempted after processing 9071f6aea4SDaniel Gerzo.Pa /boot/loader.rc , 9171f6aea4SDaniel Gerzothough explicit 9271f6aea4SDaniel Gerzo.Ic autoboot Ns 's 9371f6aea4SDaniel Gerzoare processed normally, using a 10 second delay. 9471f6aea4SDaniel Gerzo.Pp 9571f6aea4SDaniel GerzoIf set to 9671f6aea4SDaniel Gerzo.Dq Li 0 , 9771f6aea4SDaniel Gerzono delay is inserted, but any keys pressed while the kernel and modules are 9871f6aea4SDaniel Gerzoloaded will enter interactive mode. 9971f6aea4SDaniel Gerzo.Pp 10071f6aea4SDaniel GerzoIf set to 10171f6aea4SDaniel Gerzo.Dq Li -1 , 10271f6aea4SDaniel Gerzono delay will be inserted and 10371f6aea4SDaniel Gerzo.Nm 10471f6aea4SDaniel Gerzostarts interactive mode only if 10571f6aea4SDaniel Gerzo.Ic autoboot 10671f6aea4SDaniel Gerzohas failed. 10771f6aea4SDaniel GerzoIn combination with the 10871f6aea4SDaniel Gerzo.Va beastie_disable 10971f6aea4SDaniel Gerzooption, this option prevents users with console access from being able 11071f6aea4SDaniel Gerzoto interrupt the 11171f6aea4SDaniel Gerzo.Ic autoboot 11271f6aea4SDaniel Gerzoprocess and escape to the loader prompt. 11371f6aea4SDaniel GerzoTo use the 11471f6aea4SDaniel Gerzo.Va autoboot_delay 11571f6aea4SDaniel Gerzooption in this manner, 11671f6aea4SDaniel Gerzo.Va beastie_disable 11771f6aea4SDaniel Gerzomust be set to 11871f6aea4SDaniel Gerzo.Dq Li YES . 119b6955dfdSWarner Losh.It Ar exec 120b6955dfdSWarner LoshImmediately executes a 121b6955dfdSWarner Losh.Xr loader 8 122b6955dfdSWarner Loshcommand. 123b6955dfdSWarner LoshThis type of setting cannot be processed by programs other 124b6955dfdSWarner Loshthan 125b6955dfdSWarner Losh.Xr loader 8 , 126b6955dfdSWarner Loshso its use should be avoided. 127b6955dfdSWarner LoshMultiple instances of it will be processed 128b6955dfdSWarner Loshindependently. 12972cf7db3SKyle Evans.It Ar loader_conf_dirs 13072cf7db3SKyle EvansSpace separated list of directories to process for configuration files. 13172cf7db3SKyle EvansThe lua-based loader will process files with a 13272cf7db3SKyle Evans.Dq .conf 13372cf7db3SKyle Evanssuffix that are placed in these directories. 134c475e61fSStéphane RochoyFiles found here are processed after the ones listed in 135c475e61fSStéphane Rochoy.Va loader_conf_files 136c475e61fSStéphane Rochoybut before the ones found in 137c475e61fSStéphane Rochoy.Va local_loader_conf_files . 138b6955dfdSWarner Losh.It Ar loader_conf_files 139b6955dfdSWarner LoshDefines additional configuration files to be processed right after the 140b6955dfdSWarner Loshpresent file. 14180a623bfSKyle Evans.Ar loader_conf_files 14280a623bfSKyle Evansshould be treated as write-only. 14380a623bfSKyle EvansOne cannot depend on any value remaining in the loader environment or carried 14480a623bfSKyle Evansover into the kernel environment. 145c475e61fSStéphane Rochoy.It Ar local_loader_conf_files 146c475e61fSStéphane RochoySpace separated list of additional configuration files to be processed at last, 147c475e61fSStéphane Rochoyi.e., after 148c475e61fSStéphane Rochoy.Va loader_conf_files 149c475e61fSStéphane Rochoyand 150c475e61fSStéphane Rochoy.Va loader_conf_dirs 151c475e61fSStéphane Rochoyare processed. 152c343eedcSStéphane Rochoy.It Ar product_vars 153c343eedcSStéphane RochoyWhen set, must be a space separated list of environment variable names to walk 154c343eedcSStéphane Rochoythrough to guess product information. 155c343eedcSStéphane RochoyThe order matters as reading a config file override the previously defined 156c343eedcSStéphane Rochoyvalues. 157c343eedcSStéphane RochoyUndefined variables are silently ignored. 158c343eedcSStéphane Rochoy.Pp 159c343eedcSStéphane RochoyWhen product information can be guessed, for each product information found, 160c343eedcSStéphane Rochoyappend 161c343eedcSStéphane Rochoy.Pa /boot/loader.conf.d/PRODUCT 162c343eedcSStéphane Rochoyto 163c343eedcSStéphane Rochoy.Ar loader_conf_dirs . 164c343eedcSStéphane RochoyIt can be typically used as follow: 165c343eedcSStéphane Rochoy.Bd -literal 166c343eedcSStéphane Rochoysmbios.system.planar.maker="PLANAR_MAKER" 167c343eedcSStéphane Rochoysmbios.system.planar.product="PLANAR_PRODUCT" 168c343eedcSStéphane Rochoysmbios.system.product="PRODUCT" 169c343eedcSStéphane Rochoyuboot.m_product="M_PRODUCT" 170c343eedcSStéphane Rochoyproduct_vars="smbios.system.planar.maker smbios.system.planar.product smbios.system.product uboot.m_product" 171c343eedcSStéphane Rochoy.Ed 172c343eedcSStéphane Rochoy.Pp 173c343eedcSStéphane Rochoyto read files found in the following directories, in that order: 174c343eedcSStéphane Rochoy.Bl -bullet -compact 175c343eedcSStéphane Rochoy.It 176c343eedcSStéphane Rochoy.Pa /boot/loader.conf.d/PLANAR_MAKER 177c343eedcSStéphane Rochoy.It 178c343eedcSStéphane Rochoy.Pa /boot/loader.conf.d/PLANAR_PRODUCT 179c343eedcSStéphane Rochoy.It 180c343eedcSStéphane Rochoy.Pa /boot/loader.conf.d/PRODUCT 181c343eedcSStéphane Rochoy.It 182c343eedcSStéphane Rochoy.Pa /boot/loader.conf.d/M_PRODUCT 183c343eedcSStéphane Rochoy.El 184b6955dfdSWarner Losh.It Ar kernel 185b6955dfdSWarner LoshName of the kernel to be loaded. 186b6955dfdSWarner LoshIf no kernel name is set, no additional 187b6955dfdSWarner Loshmodules will be loaded. 188b6955dfdSWarner LoshThe name must be a subdirectory of 189b6955dfdSWarner Losh.Pa /boot 190b6955dfdSWarner Loshthat contains a kernel. 191b6955dfdSWarner Losh.It Ar kernel_options 192b6955dfdSWarner LoshFlags to be passed to the kernel. 193b6955dfdSWarner Losh.It Ar vfs.root.mountfrom 194b6955dfdSWarner LoshSpecify the root partition to mount. 195b6955dfdSWarner LoshFor example: 196b6955dfdSWarner Losh.Pp 197b6955dfdSWarner Losh.Dl vfs.root.mountfrom="ufs:/dev/da0s1a" 198b6955dfdSWarner Losh.Pp 199b6955dfdSWarner Losh.Xr loader 8 200b6955dfdSWarner Loshautomatically calculates the value of this tunable from 201b6955dfdSWarner Losh.Pa /etc/fstab 202b6955dfdSWarner Loshfrom the partition the kernel was loaded from. 203b6955dfdSWarner LoshThe calculated value might be calculated incorrectly when 204b6955dfdSWarner Losh.Pa /etc/fstab 205b6955dfdSWarner Loshis not available during 206b6955dfdSWarner Losh.Xr loader 8 207b6955dfdSWarner Loshstartup (as during diskless booting from NFS), or if a different 208b6955dfdSWarner Loshdevice is desired by the user. 209b6955dfdSWarner LoshThe preferred value can be set in 210b6955dfdSWarner Losh.Pa /loader.conf . 211b6955dfdSWarner Losh.Pp 212b6955dfdSWarner LoshThe value can also be overridden from the 213b6955dfdSWarner Losh.Xr loader 8 214b6955dfdSWarner Loshcommand line. 215b6955dfdSWarner LoshThis is useful for system recovery when 216b6955dfdSWarner Losh.Pa /etc/fstab 217b6955dfdSWarner Loshis damaged, lost, or read from the wrong partition. 218b6955dfdSWarner Losh.It Ar password 219b6955dfdSWarner LoshProtect boot menu with a password without interrupting 220b6955dfdSWarner Losh.Ic autoboot 221b6955dfdSWarner Loshprocess. 222b6955dfdSWarner LoshThe password should be in clear text format. 223b6955dfdSWarner LoshIf a password is set, boot menu will not appear until any key is pressed during 224b6955dfdSWarner Loshcountdown period specified by 225b6955dfdSWarner Losh.Va autoboot_delay 226b6955dfdSWarner Loshvariable or 227b6955dfdSWarner Losh.Ic autoboot 228b6955dfdSWarner Loshprocess fails. 229b6955dfdSWarner LoshIn both cases user should provide specified password to be able to access boot 230b6955dfdSWarner Loshmenu. 231b6955dfdSWarner Losh.It Ar bootlock_password 232b6955dfdSWarner LoshProvides a password to be required by check-password before execution is 233b6955dfdSWarner Loshallowed to continue. 234b6955dfdSWarner LoshThe password should be in clear text format. 235b6955dfdSWarner LoshIf a password is set, the user must provide specified password to boot. 236b6955dfdSWarner Losh.It Ar verbose_loading 237b6955dfdSWarner LoshIf set to 238b6955dfdSWarner Losh.Dq YES , 239b6955dfdSWarner Loshmodule names will be displayed as they are loaded. 240532dc172SKyle Evans.It Ar module_blacklist 241532dc172SKyle EvansBlacklist of modules. 242532dc172SKyle EvansModules specified in the blacklist may not be loaded automatically with a 243532dc172SKyle Evans.Ar *_load 244532dc172SKyle Evansdirective, but they may be loaded directly at the 245532dc172SKyle Evans.Xr loader 8 246532dc172SKyle Evansprompt. 247532dc172SKyle EvansBlacklisted modules may still be loaded indirectly as dependencies of other 248dbffe0f1SGlen Barbermodules. 249b6955dfdSWarner Losh.It Ar *_load 250b6955dfdSWarner LoshIf set to 251b6955dfdSWarner Losh.Dq YES , 252b6955dfdSWarner Loshthat module will be loaded. 253b6955dfdSWarner LoshIf no name is defined (see below), the 254b6955dfdSWarner Loshmodule's name is taken to be the same as the prefix. 255b6955dfdSWarner Losh.It Ar *_name 256b6955dfdSWarner LoshDefines the name of the module. 257b6955dfdSWarner Losh.It Ar *_type 258b6955dfdSWarner LoshDefines the module's type. 259b6955dfdSWarner LoshIf none is given, it defaults to a kld module. 260b6955dfdSWarner Losh.It Ar *_flags 261b6955dfdSWarner LoshFlags and parameters to be passed to the module. 262b6955dfdSWarner Losh.It Ar *_before 263b6955dfdSWarner LoshCommands to be executed before the module is loaded. 264b6955dfdSWarner LoshUse of this setting 265b6955dfdSWarner Loshshould be avoided. 266b6955dfdSWarner Losh.It Ar *_after 267b6955dfdSWarner LoshCommands to be executed after the module is loaded. 268b6955dfdSWarner LoshUse of this setting 269b6955dfdSWarner Loshshould be avoided. 270b6955dfdSWarner Losh.It Ar *_error 271b6955dfdSWarner LoshCommands to be executed if the loading of a module fails. 272b6955dfdSWarner LoshExcept for the 273b6955dfdSWarner Loshspecial value 274b6955dfdSWarner Losh.Dq abort , 275b6955dfdSWarner Loshwhich aborts the bootstrap process, use of this setting should be avoided. 276b6955dfdSWarner Losh.El 277b6955dfdSWarner Losh.Pp 278b6955dfdSWarner Losh.Em WARNING : 279b6955dfdSWarner Loshdevelopers should never use these suffixes for any kernel environment 280b6955dfdSWarner Loshvariables (tunables) or conflicts will result. 281b6955dfdSWarner Losh.Sh DEFAULT SETTINGS 282b6955dfdSWarner LoshMost of 283b6955dfdSWarner Losh.Nm Ns 's 284b6955dfdSWarner Loshdefault settings can be ignored. 285b6955dfdSWarner LoshThe few of them which are important 286b6955dfdSWarner Loshor useful are: 287b6955dfdSWarner Losh.Bl -tag -width bootfile -offset indent 288c475e61fSStéphane Rochoy.It Va local_loader_conf_files 289c475e61fSStéphane Rochoy.Pq Dq /boot/loader.conf.local 290c475e61fSStéphane RochoyEnsure 291c475e61fSStéphane Rochoy.Va loader.conf.local 292c475e61fSStéphane Rochoycan always be used to override settings from files found in 293c475e61fSStéphane Rochoy.Va loader_conf_files 294c475e61fSStéphane Rochoyand 295c475e61fSStéphane Rochoy.Va loader_conf_dirs . 296b6955dfdSWarner Losh.It Va bitmap_load 297b6955dfdSWarner Losh.Pq Dq NO 298b6955dfdSWarner LoshIf set to 299b6955dfdSWarner Losh.Dq YES , 300b6955dfdSWarner Losha bitmap will be loaded to be displayed on screen while booting. 301b6955dfdSWarner Losh.It Va bitmap_name 302b6955dfdSWarner Losh.Pq Dq Pa /boot/splash.bmp 303b6955dfdSWarner LoshName of the bitmap to be loaded. 304b6955dfdSWarner LoshAny other name can be used. 305b6955dfdSWarner Losh.It Va comconsole_speed 3064722ceb7SEd Maste.Dq ( 115200 307b6955dfdSWarner Loshor the value of the 308b6955dfdSWarner Losh.Va BOOT_COMCONSOLE_SPEED 309b6955dfdSWarner Loshvariable when 310b6955dfdSWarner Losh.Xr loader 8 311b6955dfdSWarner Loshwas compiled). 312b6955dfdSWarner LoshSets the speed of the serial console. 313b6955dfdSWarner LoshIf the previous boot loader stage specified that a serial console 314b6955dfdSWarner Loshis in use then the default speed is determined from the current 315b6955dfdSWarner Loshserial port speed setting. 316b6955dfdSWarner Losh.It Va console 317b6955dfdSWarner Losh.Pq Dq vidconsole 318b6955dfdSWarner Losh.Dq comconsole 319b6955dfdSWarner Loshselects serial console, 320b6955dfdSWarner Losh.Dq vidconsole 321b6955dfdSWarner Loshselects the video console, 322de0c7fbeSLi-Wen Hsu.Dq efi 323de0c7fbeSLi-Wen Hsuselects the EFI console, 324b6955dfdSWarner Losh.Dq nullconsole 325b6955dfdSWarner Loshselects a mute console 326b6955dfdSWarner Losh(useful for systems with neither a video console nor a serial port), and 327b6955dfdSWarner Losh.Dq spinconsole 328b6955dfdSWarner Loshselects the video console which prevents any input and hides all output 329b6955dfdSWarner Loshreplacing it with 330b6955dfdSWarner Losh.Dq spinning 331b6955dfdSWarner Loshcharacter (useful for embedded products and such). 332babda095SToomas Soome.It Va screen.font 333babda095SToomas SoomeSet font size for framebuffer mode. 334*1dbbce97SAhmad KhalifaThe default font size is selected based on screen resolution. 335*1dbbce97SAhmad KhalifaNote that the terminal's size may vary. 336babda095SToomas Soome.It Va screen.textmode 3373efe9b3eSMateusz PiotrowskiValue 3383efe9b3eSMateusz Piotrowski.Dq 0 3393efe9b3eSMateusz Piotrowskiwill trigger BIOS loader to switch to use VESA BIOS Extension (VBE) 340babda095SToomas Soomeframe buffer mode for console. 341babda095SToomas SoomeThe same effect can be achieved by setting 342babda095SToomas Soome.Va vbe_max_resolution . 343babda095SToomas Soome.Pp 3443efe9b3eSMateusz PiotrowskiValue 3453efe9b3eSMateusz Piotrowski.Dq 1 3463efe9b3eSMateusz Piotrowskiwill force BIOS loader to use VGA text mode. 347babda095SToomas Soome.Pp 348babda095SToomas SoomeIf 349babda095SToomas Soome.Va vbe_max_resolution 350babda095SToomas Soomeis not set, the loader will try to set screen resolution based on EDID 351babda095SToomas Soomeinformation. 352babda095SToomas SoomeIf EDID is not available, the default resolution is 800x600 (if available). 353babda095SToomas Soome.It Va screen.height 354babda095SToomas Soome.It Va screen.width 355babda095SToomas Soome.It Va screen.depth 356babda095SToomas Soome.Va screen.height , 357babda095SToomas Soome.Va screen.width , 358babda095SToomas Soome.Va screen.depth 359babda095SToomas Soomeare set by loader when loader is using framebuffer mode to draw the screen. 3609ee31ef2SKyle Evans.It Va efi_max_resolution 3613630506bSToomas Soome.It Va vbe_max_resolution 362babda095SToomas SoomeSpecify the maximum desired resolution for the EFI or VBE framebuffer console. 363bd868d67SKyle EvansThe following values are accepted: 364bd868d67SKyle Evans.Bl -column "WidthxHeight" 365bd868d67SKyle Evans.It Sy Value Ta Sy Resolution 366bd868d67SKyle Evans.It 480p Ta 640x480 367bd868d67SKyle Evans.It 720p Ta 1280x720 368bd868d67SKyle Evans.It 1080p Ta 1920x1080 3697edbf69bSDag-Erling Smørgrav.It 1440p Ta 2560x1440 370bd868d67SKyle Evans.It 2160p Ta 3840x2160 371bd868d67SKyle Evans.It 4k Ta 3840x2160 372bd868d67SKyle Evans.It 5k Ta 5120x2880 373bd868d67SKyle Evans.It Va Width Ns x Ns Va Height Ta Va Width Ns x Ns Va Height 374bd868d67SKyle Evans.El 375b6955dfdSWarner Losh.It Va kernel 376b6955dfdSWarner Losh.Pq Dq kernel 377b6955dfdSWarner Losh.It Va kernels 378b6955dfdSWarner Losh.Pq Dq kernel kernel.old 379b6955dfdSWarner LoshSpace or comma separated list of kernels to present in the boot menu. 380b6955dfdSWarner Losh.It Va loader_conf_files 381b6955dfdSWarner Losh.Pq Dq Pa /boot/loader.conf /boot/loader.conf.local 38272cf7db3SKyle Evans.It Va loader_conf_dirs 38372cf7db3SKyle Evans.Pq Dq Pa /boot/loader.conf.d 384b6955dfdSWarner Losh.It Va splash_bmp_load 385b6955dfdSWarner Losh.Pq Dq NO 386b6955dfdSWarner LoshIf set to 387b6955dfdSWarner Losh.Dq YES , 388b6955dfdSWarner Loshwill load the splash screen module, making it possible to display a bmp image 389b6955dfdSWarner Loshon the screen while booting. 390b6955dfdSWarner Losh.It Va splash_pcx_load 391b6955dfdSWarner Losh.Pq Dq NO 392b6955dfdSWarner LoshIf set to 393b6955dfdSWarner Losh.Dq YES , 394b6955dfdSWarner Loshwill load the splash screen module, making it possible to display a pcx image 395b6955dfdSWarner Loshon the screen while booting. 396b6955dfdSWarner Losh.It Va vesa_load 397b6955dfdSWarner Losh.Pq Dq NO 398b6955dfdSWarner LoshIf set to 399b6955dfdSWarner Losh.Dq YES , 400b6955dfdSWarner Loshthe vesa module will be loaded, enabling bitmaps above VGA resolution to 401b6955dfdSWarner Loshbe displayed. 402b6955dfdSWarner Losh.It Va beastie_disable 403b6955dfdSWarner LoshIf set to 404b6955dfdSWarner Losh.Dq YES , 405b6955dfdSWarner Loshthe beastie boot menu will be skipped. 406b6955dfdSWarner Losh.It Va loader_logo Pq Dq Li orbbw 407b6955dfdSWarner LoshSelects a desired logo in the beastie boot menu. 408b6955dfdSWarner LoshPossible values are: 409b6955dfdSWarner Losh.Dq Li orbbw , 410b6955dfdSWarner Losh.Dq Li orb , 411b6955dfdSWarner Losh.Dq Li fbsdbw , 412b6955dfdSWarner Losh.Dq Li beastiebw , 413b6955dfdSWarner Losh.Dq Li beastie , 414b6955dfdSWarner Loshand 415b6955dfdSWarner Losh.Dq Li none . 416b6955dfdSWarner Losh.It Va loader_color 417b6955dfdSWarner LoshIf set to 418b6955dfdSWarner Losh.Dq NO , 419b6955dfdSWarner Loshthe beastie boot menu will be displayed without ANSI coloring. 420b6955dfdSWarner Losh.It Va entropy_cache_load 421b6955dfdSWarner Losh.Pq Dq YES 422b6955dfdSWarner LoshIf set to 423b6955dfdSWarner Losh.Dq NO , 424b6955dfdSWarner Loshthe very early 425b6955dfdSWarner Loshboot-time entropy file 426b6955dfdSWarner Loshwill not be loaded. 427b6955dfdSWarner LoshSee the entropy entries in 428b6955dfdSWarner Losh.Xr rc.conf 5 . 429b6955dfdSWarner Losh.It Va entropy_cache_name 430b6955dfdSWarner Losh.Pq Dq /boot/entropy 431b6955dfdSWarner LoshThe name of the very early 432b6955dfdSWarner Loshboot-time entropy cache file. 433f6a0fd44SMark Johnston.It Va cpu_microcode_load 434f6a0fd44SMark Johnston.Pq Dq NO 435f6a0fd44SMark JohnstonIf set to 436f6a0fd44SMark Johnston.Dq YES , 437f6a0fd44SMark Johnstonthe microcode update file specified by 438f6a0fd44SMark Johnston.Va cpu_microcode_name 439f6a0fd44SMark Johnstonwill be loaded and applied very early during boot. 440f6a0fd44SMark JohnstonThis provides functionality similar to 441f6a0fd44SMark Johnston.Xr cpucontrol 8 442f6a0fd44SMark Johnstonbut ensures that CPU features enabled by microcode updates can be 443f6a0fd44SMark Johnstonused by the kernel. 444f6a0fd44SMark JohnstonThe update will be re-applied automatically when resuming from an 445f6a0fd44SMark JohnstonACPI sleep state. 446f6a0fd44SMark JohnstonIf the update file contains updates for multiple processor models, 447f6a0fd44SMark Johnstonthe kernel will search for and extract a matching update. 448f6a0fd44SMark JohnstonCurrently this setting is supported only on Intel 449f6a0fd44SMark Johnston.Dv i386 450f6a0fd44SMark Johnstonand 451f6a0fd44SMark Johnston.Dv amd64 452f6a0fd44SMark Johnstonprocessors. 453f6a0fd44SMark JohnstonIt has no effect on other processor types. 454f6a0fd44SMark Johnston.It Va cpu_microcode_name 455f6a0fd44SMark JohnstonA path to a microcode update file. 456b6955dfdSWarner Losh.El 457dec08e67SKyle Evans.Sh OTHER SETTINGS 458dec08e67SKyle EvansOther settings that may be used in 459dec08e67SKyle Evans.Nm 460dec08e67SKyle Evansthat have no default value: 461dec08e67SKyle Evans.Bl -tag -width bootfile -offset indent 462dec08e67SKyle Evans.It Va fdt_overlays 463dec08e67SKyle EvansSpecifies a comma-delimited list of FDT overlays to apply. 4642c58a193SKyle Evans.Pa /boot/dtb/overlays 465dec08e67SKyle Evansis created by default for overlays to be placed in. 466dec08e67SKyle Evans.It Va kernels_autodetect 467dec08e67SKyle EvansIf set to 468dec08e67SKyle Evans.Dq YES , 469dec08e67SKyle Evansattempt to auto-detect kernels installed in 470dec08e67SKyle Evans.Pa /boot . 471dec08e67SKyle EvansThis is an option specific to the Lua-based loader. 472dec08e67SKyle EvansIt is not available in the default Forth-based loader. 473dec08e67SKyle Evans.El 474b6955dfdSWarner Losh.Sh FILES 475b6955dfdSWarner Losh.Bl -tag -width /boot/defaults/loader.conf -compact 476b6955dfdSWarner Losh.It Pa /boot/defaults/loader.conf 477c475e61fSStéphane RochoyDefault settings \(em do not change this file. 478b6955dfdSWarner Losh.It Pa /boot/loader.conf 479c475e61fSStéphane RochoyUser defined settings. 4803cb2f5f3SKyle Evans.It Pa /boot/loader.conf.lua 481c475e61fSStéphane RochoyUser defined settings written in lua. 482c475e61fSStéphane Rochoy.It Pa /boot/loader.conf.d/*.conf 483c475e61fSStéphane RochoyUser defined settings split in separate files. 484c475e61fSStéphane Rochoy.It Pa /boot/loader.conf.d/*.lua 485c475e61fSStéphane RochoyUser defined settings written in lua and split in separate files. 486b6955dfdSWarner Losh.It Pa /boot/loader.conf.local 487c475e61fSStéphane RochoyMachine-specific settings for sites with a common loader.conf. Allow to override 488c475e61fSStéphane Rochoysettings defined in other files. 489b6955dfdSWarner Losh.El 490b6955dfdSWarner Losh.Sh SEE ALSO 49164db9a0fSWarner Losh.Xr kenv 1 , 4923cb2f5f3SKyle Evans.Xr loader.conf.lua 5 , 493b6955dfdSWarner Losh.Xr rc.conf 5 , 494b6955dfdSWarner Losh.Xr boot 8 , 495f6a0fd44SMark Johnston.Xr cpucontrol 8 , 496b6955dfdSWarner Losh.Xr loader 8 , 497b6955dfdSWarner Losh.Xr loader.4th 8 498b6955dfdSWarner Losh.Sh HISTORY 499b6955dfdSWarner LoshThe file 500b6955dfdSWarner Losh.Nm 501b6955dfdSWarner Loshfirst appeared in 502b6955dfdSWarner Losh.Fx 3.2 . 503b6955dfdSWarner Losh.Sh AUTHORS 504b6955dfdSWarner LoshThis manual page was written by 505b6955dfdSWarner Losh.An Daniel C. Sobral Aq dcs@FreeBSD.org . 506b6955dfdSWarner Losh.Sh BUGS 507b6955dfdSWarner LoshThe 508b6955dfdSWarner Losh.Xr loader 8 509b6955dfdSWarner Loshstops reading 510b6955dfdSWarner Losh.Nm 511b6955dfdSWarner Loshwhen it encounters a syntax error, so any options which are vital for 5123efe9b3eSMateusz Piotrowskibooting a particular system (i.e., 513b6955dfdSWarner Losh.Dq Va hw.ata.ata_dma Ns "=0" ) 514b6955dfdSWarner Loshshould precede any experimental additions to 515b6955dfdSWarner Losh.Nm . 516