aboutsummaryrefslogtreecommitdiff
path: root/sbin/bectl
diff options
context:
space:
mode:
authorRobert Wing <rew@FreeBSD.org>2021-01-06 19:38:25 +0000
committerRobert Wing <rew@FreeBSD.org>2021-01-06 19:38:25 +0000
commitb1ea63e2e3c92d1346af067f5cf609e3e062f8b9 (patch)
tree56939625e43022f4625d7f70e0de52d595317968 /sbin/bectl
parent439862883f482fb12709968e0ca6df6c80f8d636 (diff)
downloadsrc-b1ea63e2e3c92d1346af067f5cf609e3e062f8b9.tar.gz
src-b1ea63e2e3c92d1346af067f5cf609e3e062f8b9.zip
Diffstat (limited to 'sbin/bectl')
-rw-r--r--sbin/bectl/bectl.811
-rw-r--r--sbin/bectl/bectl.c9
2 files changed, 9 insertions, 11 deletions
diff --git a/sbin/bectl/bectl.8 b/sbin/bectl/bectl.8
index 0638a0c10ecb..4b7868e093eb 100644
--- a/sbin/bectl/bectl.8
+++ b/sbin/bectl/bectl.8
@@ -17,7 +17,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 25, 2020
+.Dd January 6, 2021
.Dt BECTL 8
.Os
.Sh NAME
@@ -71,8 +71,7 @@
.Ar newBeName
.Nm
.Brq Cm ujail | unjail
-.Brq Ar jailId | jailName
-.Ar beName
+.Brq Ar jailId | jailName | beName
.Nm
.Brq Cm umount | unmount
.Op Fl f
@@ -256,7 +255,7 @@ generated by
All default parameters may be overwritten.
.It Xo
.Cm list
-.Op Fl DHas
+.Op Fl aDHs
.Oo Bro Fl c Ar property | Fl C Ar property Brc Oc
.Xc
.Pp
@@ -321,8 +320,8 @@ Rename the given
to the given
.Ar newBeName .
The boot environment will not be unmounted in order for this rename to occur.
-.It Cm ujail Bro Ar jailId | jailName Brc Ar beName
-.It Cm unjail Bro Ar jailId | jailName Brc Ar beName
+.It Cm ujail Brq Ar jailId | jailName | beName
+.It Cm unjail Brq Ar jailId | jailName | beName
Destroy the jail created from the given boot environment.
.It Xo
.Cm umount
diff --git a/sbin/bectl/bectl.c b/sbin/bectl/bectl.c
index ec6c55a57dd9..d4573393130d 100644
--- a/sbin/bectl/bectl.c
+++ b/sbin/bectl/bectl.c
@@ -81,13 +81,12 @@ usage(bool explicit)
"\tbectl destroy [-Fo] {beName | beName@snapshot}\n"
"\tbectl export sourceBe\n"
"\tbectl import targetBe\n"
- "\tbectl jail {-b | -U} [{-o key=value | -u key}]... "
- "{jailID | jailName}\n"
- "\t bootenv [utility [argument ...]]\n"
- "\tbectl list [-DHas] [{-c property | -C property}]\n"
+ "\tbectl jail [-bU] [{-o key=value | -u key}]... beName\n"
+ "\t [utility [argument ...]]\n"
+ "\tbectl list [-aDHs] [{-c property | -C property}]\n"
"\tbectl mount beName [mountpoint]\n"
"\tbectl rename origBeName newBeName\n"
- "\tbectl {ujail | unjail} {jailID | jailName} bootenv\n"
+ "\tbectl {ujail | unjail} {jailID | jailName | beName}\n"
"\tbectl {umount | unmount} [-f] beName\n");
return (explicit ? 0 : EX_USAGE);