BOOT.CONFIG(5)
πΎ boot.config(5) β the legacy boot blocks' little config bestie π
okay so real talk: this is the manual page for boot.config, aka section 5 of the File Formats Manual, and it's all about the config file for the legacy boot blocks. it's giving "old but iconic" fr fr π
β¨ NAME β¨
boot.config β Configuration file for the legacy boot blocks π«Ά
πΈ DESCRIPTION πΈ
the boot.config file contains options for the FreeBSD boot block code. like, that's its whole job. main character energy honestly π
so here's the vibe: when the first- and second-stage FreeBSD boot loaders run, they search the "a" slice of the boot partition for a boot.config file. yep, that's right β they're out here looking for their bestie π§
β οΈ heads up bestie: as a result, slices which are missing an "a" partition require user intervention during the boot process. no "a" slice, no auto-magic β you're gonna have to step in yourself π
if the boot.config file is found, its contents are used as the default configuration options for the boot block code and are echoed to the system console. loud and proud, periodt π
a valid format of this file is to put BIOS drive number, a controller type, a unit number, a partition, a kernel file name, and any other valid boot(8) option on a single line, as it is done at the "boot:" prompt. one line, all the deets, exactly like you'd type it at the prompt. slay β¨
the options related to the boot image selection described below and all the other options available for boot.config are documented in detail in the boot(8) manual page. so if you want the full lore, that's where it lives π
π¦ FILES π¦
/boot.configβ parameters for the boot blocks (optional)/boot/configβ alternate location for boot config information
π EXAMPLES π
okay the examples are lowkey the best part, let's go π
example one β the command:
# echo "-P" > /boot.config
will activate the serial console of FreeBSD if no keyboard is present, otherwise video console will be used. so it's like, "no keyboard? no problem, serial console it is" π
example two β the command:
# echo "1:ad(1,a)/boot/loader" > /boot.config
will instruct the second stage of boot(8) on the first disk to boot with the third boot(8) stage from the second disk. very "collab across disks" of it π€
example three β the command:
# echo "1:ad(1,a)/boot/loader -P" > /boot.config
will do both of the above. combo move, ate π₯
β SEE ALSO β
go read those too, iykyk π
π AUTHORS π
This manual page was written by Daniel Gerzo <danger@FreeBSD.org>. absolute legend, we stan π«Ά
and that's the whole page bestie!! this one's from the Debian crew, dated November 14, 2025 β bookmark it, screenshot it, whatever you gotta do. mwah ππΈ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2007 Daniel Gerzo <danger@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms