mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
reboot: Implement -o to set kernel options for next boot
Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D43829
This commit is contained in:
parent
9dcf6cbd83
commit
91d2407702
@ -39,18 +39,22 @@
|
||||
.Op Fl DflNnpq
|
||||
.Op Fl e Ar variable=value
|
||||
.Op Fl k Ar kernel
|
||||
.Op Fl o Ar options
|
||||
.Nm
|
||||
.Op Fl cDdflNnpqr
|
||||
.Op Fl e Ar variable=value
|
||||
.Op Fl k Ar kernel
|
||||
.Op Fl o Ar options
|
||||
.Nm fasthalt
|
||||
.Op Fl DflNnpq
|
||||
.Op Fl e Ar variable=value
|
||||
.Op Fl k Ar kernel
|
||||
.Op Fl o Ar options
|
||||
.Nm fastboot
|
||||
.Op Fl dDflNnpq
|
||||
.Op Fl e Ar variable=value
|
||||
.Op Fl k Ar kernel
|
||||
.Op Fl o Ar options
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm halt
|
||||
@ -146,6 +150,9 @@ This can happen when devices have been disconnected, such as with
|
||||
.It Fl n
|
||||
The file system cache is not flushed.
|
||||
This option should probably not be used.
|
||||
.It Fl o Ar options
|
||||
This option
|
||||
allows the passing of kernel flags for the next boot.
|
||||
.It Fl p
|
||||
The system will turn off the power if it can.
|
||||
If the power down action fails, the system
|
||||
|
@ -180,7 +180,7 @@ main(int argc, char *argv[])
|
||||
} else
|
||||
howto = 0;
|
||||
Dflag = fflag = lflag = Nflag = nflag = qflag = false;
|
||||
while ((ch = getopt(argc, argv, "cDde:k:lNnpqr")) != -1)
|
||||
while ((ch = getopt(argc, argv, "cDde:k:lNno:pqr")) != -1)
|
||||
switch(ch) {
|
||||
case 'c':
|
||||
howto |= RB_POWERCYCLE;
|
||||
@ -212,6 +212,9 @@ main(int argc, char *argv[])
|
||||
nflag = true;
|
||||
Nflag = true;
|
||||
break;
|
||||
case 'o':
|
||||
add_env(&env, "kernel_options", optarg);
|
||||
break;
|
||||
case 'p':
|
||||
howto |= RB_POWEROFF;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user