# HG changeset patch # User Franz Glasner # Date 1663512472 -7200 # Node ID a452ace0175a33b625a6992a88e68d8d1ba70e3e # Parent e64c726c4bd01d7116a54739243503d8dad2e46a Manual page for "ftjail populate" diff -r e64c726c4bd0 -r a452ace0175a docs/conf.py --- a/docs/conf.py Sun Sep 18 16:34:47 2022 +0200 +++ b/docs/conf.py Sun Sep 18 16:47:52 2022 +0200 @@ -74,6 +74,7 @@ ("man/man8/local-bsdtools", "local-bsdtools", 'FreeBSD specific administration helper tools v%s' % release, [author], 8), ("man/man8/ftjail", "ftjail", "Management helper for thin jails", [author], 8), ("man/man8/ftjail-copy-skel", "ftjail-copy-skel", "Recursively copy skeleton contents", [author], 8), +("man/man8/ftjail-populate", "ftjail-populate", "Populate a prepared directory structure with the contents of a FreeBSD base system", [author], 8), ("man/man8/ftjail-snapshot-tmpl", "ftjail-snapshot-tmpl", "Recursively create ZFS dataset-snapshots of the RO base and the RW skeleton datasets", [author], 8), ("man/man8/fzfs", "fzfs", "A ZFS management helper tool", [author], 8), ("man/man8/fzfs-mount", "fzfs-mount", "Mount ZFS datasets recursively", [author], 8), diff -r e64c726c4bd0 -r a452ace0175a docs/man/index8.rst --- a/docs/man/index8.rst Sun Sep 18 16:34:47 2022 +0200 +++ b/docs/man/index8.rst Sun Sep 18 16:47:52 2022 +0200 @@ -11,6 +11,7 @@ man8/local-bsdtools man8/ftjail man8/ftjail-copy-skel + man8/ftjail-populate man8/ftjail-snapshot-tmpl man8/fzfs man8/fzfs-mount diff -r e64c726c4bd0 -r a452ace0175a docs/man/man8/ftjail-populate.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/man/man8/ftjail-populate.rst Sun Sep 18 16:47:52 2022 +0200 @@ -0,0 +1,47 @@ +.. -*- coding: utf-8; indent-tabs-mode: nil; -*- + +ftjail-populate +=============== + +Synopsis +-------- + +**ftjail populate** **-L** `directory` `path/to/base.txz` + +**ftjail populate** **-P** `directory` `path/to/base.txz` + + +Description +----------- + +Populate the directory in `directory` with a FreeBSD base system. +The base system's archive ist in `path/to/base.txz`. + +The directory in `directory` must already have a proper +directory layout. +This can be accomplished by :manpage:`ftjail-mount-tmpl(8)`. + +Apply knowledge of the type and typical layout of the RW skeleton +(e.g. handle the :file:`skeleton` symlink properly). + + +Options +------- + +.. program:: ftjail populate + +.. option:: -L + + Copy dataset properties optimized for employing a :file:`skeleton` + subdirectory. + +.. option:: -P + + Copy dataset properties optimized for direct mounts of skeleton + children over an already mounted base. + + +See Also +-------- + +:manpage:`ftjail(8)`, :manpage:`ftjail-mount-tmpl(8)` diff -r e64c726c4bd0 -r a452ace0175a pkg-plist --- a/pkg-plist Sun Sep 18 16:34:47 2022 +0200 +++ b/pkg-plist Sun Sep 18 16:47:52 2022 +0200 @@ -9,6 +9,7 @@ %%DOCS%%man/man8/local-bsdtools.8.gz %%DOCS%%man/man8/ftjail.8.gz %%DOCS%%man/man8/ftjail-copy-skel.8.gz +%%DOCS%%man/man8/ftjail-populate.8.gz %%DOCS%%man/man8/ftjail-snapshot-tmpl.8.gz %%DOCS%%man/man8/fzfs.8.gz %%DOCS%%man/man8/fzfs-mount.8.gz diff -r e64c726c4bd0 -r a452ace0175a sbin/ftjail --- a/sbin/ftjail Sun Sep 18 16:34:47 2022 +0200 +++ b/sbin/ftjail Sun Sep 18 16:47:52 2022 +0200 @@ -62,12 +62,7 @@ Create symbolic links between the RO base and the RW skeleton. Base and skeleton must be canonically mounted already. - populate [ OPTIONS ] MOUNTPOINT BASETXZ - - Populate the directory in MOUNTPOINT with the base system in BASETXZ - - -L Populate having a "skeleton" subdirectory within the mountpoint - -P Populate directly into the mountpoint + populate -L|-P DIRECTORY BASETXZ snapshot-tmpl BASE-RO SKELETON-RW SNAPSHOT-NAME