summaryrefslogtreecommitdiffstats
path: root/sbin/reboot/nextboot.8
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2012-01-31 15:32:05 +0000
committeremaste <emaste@FreeBSD.org>2012-01-31 15:32:05 +0000
commit036c70dad3fd256395530c77c8486bc3364a3ef1 (patch)
tree6abad1d4163fcb5d66f3173a728fc170a52d5165 /sbin/reboot/nextboot.8
parent3e5b0f32817fab3d565a8e0f7517efff903bb64b (diff)
downloadFreeBSD-src-036c70dad3fd256395530c77c8486bc3364a3ef1.zip
FreeBSD-src-036c70dad3fd256395530c77c8486bc3364a3ef1.tar.gz
Add -e to set arbitrary kernel environment variables.
Nextboot(8) can now set any combination of kernel name (-k), kernel options (-o), and environment strings (-e). As a result of this change -k also becomes optional. Reviewed by: freebsd-current (Ian Lepore, pluknet@, jhb@)
Diffstat (limited to 'sbin/reboot/nextboot.8')
-rw-r--r--sbin/reboot/nextboot.813
1 files changed, 10 insertions, 3 deletions
diff --git a/sbin/reboot/nextboot.8 b/sbin/reboot/nextboot.8
index 99986b1..eb38319 100644
--- a/sbin/reboot/nextboot.8
+++ b/sbin/reboot/nextboot.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 4, 2002
+.Dd January 31, 2012
.Dt NEXTBOOT 8
.Os
.Sh NAME
@@ -32,15 +32,17 @@
.Nd "specify an alternate kernel and boot flags for the next reboot"
.Sh SYNOPSIS
.Nm
+.Op Fl e Ar variable=value
.Op Fl f
+.Op Fl k Ar kernel
.Op Fl o Ar options
-.Fl k Ar kernel
.Nm
.Fl D
.Sh DESCRIPTION
The
.Nm
-utility allows specifying an alternate kernel and/or boot flags for the
+utility allows specifying some combination of an alternate kernel, boot flags
+and kernel environment for the
next time the machine is booted.
Once the
.Xr loader 8
@@ -58,6 +60,11 @@ with this
option removes an existing
.Nm
configuration.
+.It Fl e Ar variable=value
+This option adds the provided variable and value to the kernel environment.
+The value is quoted when written to the
+.Nm
+configuration.
.It Fl f
This
option disables the sanity checking which checks if the kernel really exists
OpenPOWER on IntegriCloud