view docs/man/man8/ftjail-freebsd-update.rst @ 341:a204a7415d4a

"ftjail freebsd-update" is implemented. It supports custom mountpoints also.
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 03 Dec 2022 21:12:23 +0100
parents d3b5fe2712ca
children 89877869a665
line wrap: on
line source

.. -*- coding: utf-8; indent-tabs-mode: nil; -*-

ftjail-freebsd-update
=====================

Synopsis
--------

**ftjail freebsd-update** [**-k**] [**-o** `old-origin`] `directory` `new-origin` [`etcupdate-tarball`]


Description
-----------

A :manpage:`freebsd-update(8)` for a Thin Jail.

Make the ZFS dataset mounted at `directory` a read-only clone of `new-origin`.

If `etcupdate-tarball` is given also call :manpage:`etcupdate(8)` on
the fully re-mounted directory tree that is rooted at `directory`
using `etcupdate-tarball` as new "current".


Options
-------

.. program:: ftjail freebsd-update

.. option:: -k

   Keep all temporary files. Temporary files are created in :file:`/var/tmp`.

   .. note:: On unexpected errors temp files are automatically kept.

.. option:: -o old-origin

   In addition to check that `directory` is a ZFS clone also check that
   its origin is equal to `old-origin`.

   Note that a check that `directory` is a ZFS clone with some origin
   is done by default.


Environment
-----------

All environment variables that affect :command:`zfs` are effective also.


See Also
--------

:manpage:`ftjail(8)`, :manpage:`freebsd-update(8)`, :manpage:`etcupdate(8)`