Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nextboot(8) [freebsd man page]

NEXTBOOT(8)						    BSD System Manager's Manual 					       NEXTBOOT(8)

NAME
nextboot -- specify an alternate kernel and boot flags for the next reboot SYNOPSIS
nextboot [-e variable=value] [-f] [-k kernel] [-o options] nextboot -D DESCRIPTION
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: -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. FILES
/boot/nextboot.conf The configuration file that the nextboot configuration is written into. 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), loader(8) HISTORY
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. AUTHORS
This manual page was written by Gordon Tetlow <gordon@FreeBSD.org>. BUGS
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. BSD
January 31, 2012 BSD

Check Out this Related Man Page

mk_kernel(1M)															     mk_kernel(1M)

NAME
mk_kernel - load a kernel configuration from a system file SYNOPSIS
path_name] system_file] DESCRIPTION
reads configuration information from the system file (see system(4)) and applies those changes to a kernel configuration (see kconfig(5)). performs a function similar to that of but has some semantic differences in order to preserve compatibility with previous releases. will build a new kernel executable only if needed to effect the requested changes. may reuse existing kernel executables when possible. Options recognizes the following options. Specify the target kernel path. If the target kernel path specified is changes are applied to the currently running kernel configuration. They will take effect immediately if possible; otherwise, they will take effect at next boot. If the target kernel path specified is of the form changes are applied to the saved kernel configuration named config. The changes will not take effect at next boot unless that saved kernel configuration was already marked for use at next boot. If the target kernel name is a single word containing no slashes, that name is used as the name of a saved kernel configuration. The changes are applied to that saved kernel configuration. The changes will not take effect at next boot unless that saved ker- nel configuration was already marked for use at next boot. If the target kernel path is not one of the forms specified above, then exits with an error. Other locations for kernel exe- cutable files are no longer supported. If the option is not specified, the changes are applied to the kernel configuration called The changes will not take effect at next boot unless that kernel configuration was already marked for use at next boot. Specify the HP-UX system description file. If this option is not specified, the system file is used. For details see system(4). Verbose mode. (Has no effect; retained for backward compatibility.) RETURN VALUE
returns 0 upon normal completion; it returns 1 if an error occurred. DIAGNOSTICS
Messages and warnings are sent to Messages from and other commands are displayed when invoked from Errors cause to halt immediately; warn- ings allow the program to continue. EXAMPLES
Uses the default HP-UX system description file The changes are applied to the currently running kernel configuration, marked to take effect at next boot. Uses the system description file Uses the system description file The changes are applied to the saved kernel configuration called WARNINGS
Do not manually modify the contents of the kernel configuration directories. FILES
Default HP-UX system description file SEE ALSO
kconfig(1M), system(4), kconfig(5). mk_kernel(1M)
Man Page