BOOT.CONFIG(5)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 14.5, freebsd 15.1

πŸ’Ύ 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