diff options
author | wes <wes@FreeBSD.org> | 2002-04-26 07:31:04 +0000 |
---|---|---|
committer | wes <wes@FreeBSD.org> | 2002-04-26 07:31:04 +0000 |
commit | 9bf40bea60a51889f77b8f5c8128b2bebe1a3284 (patch) | |
tree | 7ead246584ad34442c705cb33fc0bfa686914287 /sbin/reboot/reboot.8 | |
parent | a83271f3cb64d931c0f89f438d35104acfd34863 (diff) | |
download | FreeBSD-src-9bf40bea60a51889f77b8f5c8128b2bebe1a3284.zip FreeBSD-src-9bf40bea60a51889f77b8f5c8128b2bebe1a3284.tar.gz |
Add a -k option to reboot to specify the kernel to boot next time
around. If the kernel boots successfully, the record of this kernel
is erased, it is intended to be a one-shot option for testing
kernels.
This could be improved by having the loader remove the record of
the next kernel to boot, it is currently removed in /etc/rc immediately
after disks are mounted r/w.
I'd like to MFC this before the 4.6 freeze unless there is violent
objection.
Reviewed by: Several on IRC
MFC after: 4 days
Diffstat (limited to 'sbin/reboot/reboot.8')
-rw-r--r-- | sbin/reboot/reboot.8 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8 index a16eef1..bf914b1 100644 --- a/sbin/reboot/reboot.8 +++ b/sbin/reboot/reboot.8 @@ -44,12 +44,16 @@ .Sh SYNOPSIS .Nm halt .Op Fl lnqp +.Op Fl k Ar kernel .Nm .Op Fl dlnqp +.Op Fl k Ar kernel .Nm fasthalt .Op Fl lnqp +.Op Fl k Ar kernel .Nm fastboot .Op Fl dlnqp +.Op Fl k Ar kernel .Sh DESCRIPTION The .Nm halt @@ -72,6 +76,16 @@ The system is requested to create a crash dump. This option is supported only when rebooting, and it has no effect unless a dump device has previously been specified with .Xr dumpon 8 . +.It Fl k Ar kernel +Boot the specified +.Ar kernel +on the next system boot. If the kernel boots successfully, the +.Em default +kernel will be booted on succesive boots, this is a one-shot option. +If the boot fails, the system will continue attempting to boot +.Ar kernel +until the boot process is interrupted and a valid kernel booted. +This may change in the future. .It Fl l The halt or reboot is .Em not |