LOADER.4TH(8)
π loader.4th β loader.conf processing tools β¨
πΈ NAME πΈ
loader.4th β loader.conf processing tools π
β¨ DESCRIPTION β¨
Okay bestie, so the file that goes by the name of loader.4th is literally a set of commands designed to manipulate loader.conf(5) files. The default /boot/loader.rc includes loader.4th and uses one of its commands to automatically read and process the standard loader.conf(5) files. Other commands exist to help you specify alternate configurations π«Ά.
The commands of loader.4th by themselves are not enough for most uses. Please refer to the examples below for the most common situations, and to loader(8) for additional commands.
Before using any of the commands provided in loader.4th, it must be included through the command:
include loader.4th
This line is present in the default /boot/loader.rc file, so it is not needed (and should not be re-issued) in a normal setup π.
The commands provided by it are:
boot,boot kernelname [...],boot directory [...],boot -flag ...β Boot as specified by theloader.conf(5)files read. Depending on the arguments passed, it can override boot flags and either the kernel name or the search path for kernel and modules π.boot-conf,boot-conf kernelname [...],boot-conf directory [...],boot-conf -flag ...β Works likebootdescribed above, but instead of booting immediately, usesautoboot, so it can be stopped π .startβ Reads/boot/defaults/loader.conf, all otherloader.conf(5)files specified in it, then loads the desired kernel and modules (if not already loaded). After which you can use thebootorautobootcommands or simply exit (providedautoboot_delayis not set toNO) to boot the system.startis the command used in the default/boot/loader.rcfile (seeloader(8)) π.initializeβ Initialize the support library so commands can be used without executingstartfirst. Likestart, it reads/boot/defaults/loader.confand all otherloader.conf(5)files specified in it (but does not load kernel or modules). Returns a flag on the stack to indicate if any configuration files were successfully loaded π.read-conf filenameβ Reads and processes aloader.conf(5)file. Does not proceed to boot π.enable-module moduleβ Enables the loading of module β .disable-module moduleβ Disables the loading of module β.toggle-module moduleβ Toggles the loading of module on and off π.show-module moduleβ Shows the information gathered in theloader.conf(5)files about the module module π.retryβ Used insideloader.conf(5)files to specify the action after a module loading fails π.ignoreβ Used insideloader.conf(5)files to specify the action after a module loading fails π.try-include file [file ...]β Process script files if they exist. Each file, in turn, is completely read into memory, and then each of its lines is passed to the command line interpreter. If any error is returned by the interpreter, thetry-includecommand aborts immediately, without reading any other files, and silently returns without error π€«.
π FILES π
/boot/loaderβ Theloader(8)./boot/loader.4thβloader.4thitself./boot/loader.rcβloader(8)bootstrapping script./boot/defaults/loader.confβ File loaded by thestartcommand.
π¦ EXAMPLES π¦
Standard /boot/loader.rc:
include /boot/loader.4th
start
Load a different kernel with the standard configuration:
set kernel="kernel.old"
unload
boot-conf
Read an additional configuration file and then proceed to boot:
unload
read-conf /boot/special.conf
boot-conf
Disable the loading of the splash screen module and bitmap and then proceed to boot:
unload
disable-module splash_bmp
disable-module bitmap
boot-conf
π SEE ALSO π
π HISTORY π
The loader.4th set of commands first appeared in FreeBSD 3.2 β.
π AUTHORS π
The loader.4th set of commands was written by Daniel C. Sobral <dcs@FreeBSD.org> π«Ά.
π BUGS π
The BUGS section says, and I quote: A British espionage series. π
xoxo, your local Unix bestie π β signing off from the Debian System Manager's Manual edition, dated November 13, 2013 πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1999 Daniel C. Sobral
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms