git: f467eb078f51 - stable/15 - jail.8: Add creating a jail from package base
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Nov 2025 00:15:31 UTC
The branch stable/15 has been updated by ziaee:
URL: https://cgit.FreeBSD.org/src/commit/?id=f467eb078f51a4fdcf72125c7c9d84086318071d
commit f467eb078f51a4fdcf72125c7c9d84086318071d
Author: Alexander Ziaee <ziaee@FreeBSD.org>
AuthorDate: 2025-11-13 21:25:06 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2025-11-14 00:11:55 +0000
jail.8: Add creating a jail from package base
MFC after: immediately for inclusion in 15.0R
Reported by: ivy
Differential Revision: https://reviews.freebsd.org/D53745
(cherry picked from commit 477799750abd5702a02f7f8065e6235d7db75188)
---
usr.sbin/jail/jail.8 | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8
index e27f9e3d1630..3cefc60b2632 100644
--- a/usr.sbin/jail/jail.8
+++ b/usr.sbin/jail/jail.8
@@ -26,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd November 6, 2025
+.Dd November 13, 2025
.Dt JAIL 8
.Os
.Sh NAME
@@ -1146,6 +1146,13 @@ D=/here/is/the/jail
mkdir -p $D
tar -xf /usr/freebsd-dist/base.txz -C $D --unlink
.Ed
+.Ss Setting up a Jail Directory Tree from System Packages
+To set up a jail directory tree containing an selectable
+.Fx
+distribution with the packages tech preview,
+the following command can be used:
+.Pp
+.Dl bsdinstall jail /here/is/the/jail
.Pp
In many cases these examples would put far more in the jail than needed.
In the other extreme case a jail might contain only one file: