From 120405ef5252ef8f0619899e839eca4faf6f1a34 Mon Sep 17 00:00:00 2001 From: Gordon Bergling Date: Fri, 17 Jul 2020 21:26:19 +0000 Subject: Handbook: Jails, add upgrade instructions. PR: 247927 Submitted by: Chris Jordan Reviewed by: debdrup, bcr (mentor) Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D25668 --- en_US.ISO8859-1/books/handbook/jails/chapter.xml | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'en_US.ISO8859-1/books/handbook') diff --git a/en_US.ISO8859-1/books/handbook/jails/chapter.xml b/en_US.ISO8859-1/books/handbook/jails/chapter.xml index d9b4ca80be..8696521234 100644 --- a/en_US.ISO8859-1/books/handbook/jails/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/jails/chapter.xml @@ -535,8 +535,33 @@ to maintain jails instead. Use to specify the path of the jail to be updated. + To update the jail to the latest patch release of the + version of &os; it is already running, then execute the + following commands on the host: + &prompt.root; freebsd-update -b /here/is/the/jail fetch &prompt.root; freebsd-update -b /here/is/the/jail install + + To upgrade the jail to a new major or minor version, + first upgrade the host system as described in + . Once the host has been + upgraded and rebooted, the jail can then be upgraded. + For example to upgrade from 12.0-RELEASE to 12.1-RELEASE, + on the host run: + + &prompt.root; freebsd-update -b /here/is/the/jail --currently-running 12.0-RELEASE -r 12.1-RELEASE upgrade +&prompt.root; freebsd-update -b /here/is/the/jail install +&prompt.root; service jail restart myjail +&prompt.root; freebsd-update -b /here/is/the/jail install + + Then, if it was a major version upgrade, reinstall all + installed packages and restart the jail again. This is + required because the ABI version changes when upgrading + between major versions of &os;. From the host: + + &prompt.root; pkg -j myjail upgrade -f +&prompt.root; service jail restart myjail + -- cgit v1.2.3