/boot/nextboot.conf
The configuration file that the nextboot configuration is written into.
Specify an alternate kernel and boot flags for the next reboot
nextboot [-aDf]
[-e
variable=value]
[-k
kernel]
[-o
options]
nextboot -D
The nextboot utility allows specifying some combination of an alternate kernel, boot flags, and kernel environment for the next time the machine is booted. Once the loader(8) loads in the new kernel information from the /boot/nextboot.conf file, it is disabled so in case the new kernel hangs the machine, once it is rebooted, the machine will automatically revert to its previous configuration.
The options are as follows:
-a
This option causes nextboot to append to an existing configuration in /boot/nextboot.conf. By default any existing configuration is overwritten.
-D
Invoking nextboot with this option removes an existing nextboot configuration.
-e variable=value
This option adds the provided variable and value to the kernel environment. The value is quoted when written to the nextboot configuration.
-f
This option disables the sanity checking which checks if the kernel really exists before writing the nextboot configuration.
-k kernel
This option specifies a kernel directory relative to /boot to load the kernel and any modules from.
-o options
This option allows the passing of kernel flags for the next boot.
/boot/nextboot.conf
The configuration file that the nextboot configuration is written into.
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
83 releases since FreeBSD 2.2.2-RELEASE; the text changed 45 times.
-D since FreeBSD 5.0-RELEASE;
-a since FreeBSD 11.0-RELEASE;
-e since FreeBSD 9.2-RELEASE;
-f since FreeBSD 5.0-RELEASE;
-k since FreeBSD 5.0-RELEASE;
-o since FreeBSD 5.0-RELEASE.
-b until FreeBSD 4.11-RELEASE;
-d until FreeBSD 4.11-RELEASE.