NEXTBOOT(8) | MidnightBSD System Manager's Manual | NEXTBOOT(8) |
nextboot
— specify
an alternate kernel and boot flags for the next reboot
nextboot |
[-af ] [-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, it is deleted 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
nextboot
to append to an
existing configuration in /boot/nextboot.conf. By
default any existing configuration is overwritten.-D
nextboot
with this option removes an
existing nextboot
configuration.-e
variable=valuenextboot
configuration.-f
nextboot
configuration.-k
kernel-o
optionsnextboot
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
The original nextboot
manual page first
appeared in FreeBSD 2.2. It used a very different
interface to achieve similar results.
The current incarnation of nextboot
appeared in FreeBSD 5.0.
This manual page was written by Gordon Tetlow <gordon@FreeBSD.org>.
The nextboot
code is implemented in the
loader(8). It is not the
most thoroughly tested code. It is also my first attempt to write in
Forth.
Finally, it does some evil things like writing to the file system before it has been checked. If it scrambles your file system, do not blame me.
loader(8) is only able to read ZFS, not write to it. nextboot.conf will NOT be reset in case of a kernel boot failure.
April 9, 2016 | midnightbsd-3.1 |