NEXTBOOT(8)
π NEXTBOOT(8) β like, the system manager's manual, but make it cute
okay so before we even start: this is nextboot from section 8 of the manual, aka the "system manager's manual" corner of the universe. she's a real one. let's go π
β¨ NAME β¨
nextboot β the girl who sets up an alternate kernel and boot flags for your next reboot. one-shot deal, no strings attached π
π¦ SYNOPSIS π¦
nextboot [-aDf] [-e variable=value] [-k kernel] [-o options]
nextboot -D
πΈ DESCRIPTION πΈ
so basically nextboot is your little pre-boot bestie. she lets you pick some combo of an alternate kernel, boot flags, and kernel environment for the next time the machine boots. main character energy only, no repeats π
here's the iconic part: once loader(8) loads in the new kernel info from the /boot/nextboot.conf file, that config is disabled. why? because if the new kernel hangs the machine, then once you reboot, the machine automatically reverts to its previous configuration. she's got your back fr fr π«Ά
so like, worst case scenario you just reboot twice and you're back to normal. slay.
the flags, in order π
-aβ makesnextbootappend to an existing configuration in/boot/nextboot.conf. by default any existing configuration gets overwritten, so this is the "actually, keep my old stuff too" option π-Dβ invokingnextbootwith this removes an existing nextboot configuration. it's the delete button, periodt.-e variable=valueβ adds the variable and value you give it to the kernel environment. the value gets quoted when it's written to the nextboot configuration, so no funny business with spaces π-fβ disables the sanity checking that checks if the kernel really exists before writing the nextboot configuration. it's giving "yolo, trust me". highkey only use it if you know what you're doing π-k kernelβ specifies a kernel directory relative to/bootto load the kernel and any modules from.-o optionsβ lets you pass kernel flags for the next boot.
π FILES π
/boot/nextboot.confβ the configuration file that the nextboot configuration is written into. that's her home. that's where she lives π
β EXAMPLES β
to boot the GENERIC kernel with the nextboot command:
nextboot -k GENERIC
to enable into single user mode with the normal kernel:
nextboot -o "-s" -k kernel
to remove an existing nextboot configuration:
nextboot -D
π SEE ALSO π
boot(8), freebsd-update(8), loader(8) β go read those too, iykyk π
π§ HISTORY π§
the original nextboot manual page first appeared in FreeBSD 2.2. she used a very different interface to achieve similar results. glow-up, honestly.
the current incarnation of nextboot appeared in FreeBSD 5.0. that's the version you're looking at rn β¨
π AUTHORS π
this manual page was written by Gordon Tetlow <gordon@FreeBSD.org>. give him his flowers πΈ
π BUGS π
okay so the nextboot code is implemented in loader(8). and likeβ¦ it is not the most thoroughly tested code. the author also says β and i quote in spirit β that it's his first attempt to write in Forth. respect the honesty ngl π
finally, it does some evil things, like writing to the file system before it has been checked. yes, for real. if it scrambles your file system, do not blame him. that's the actual stated policy ππ΄
β οΈ bestie read that BUGS section again. writing to an unchecked file system is genuinely dangerous, this is not a drill, this is not a vibe check, this is a real warning π¨
and that's the whole page, mwah π β sourced from Debian, dated December 8, 2025, NEXTBOOT(8), no cap, that's the tea π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 2002 Gordon Tetlow
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms