From owner-svn-doc-head@freebsd.org Fri Jul 17 21:26:19 2020 Return-Path: Delivered-To: svn-doc-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F148436F077; Fri, 17 Jul 2020 21:26:19 +0000 (UTC) (envelope-from gbe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B7khC5g96z4YfB; Fri, 17 Jul 2020 21:26:19 +0000 (UTC) (envelope-from gbe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 98EB21FBA8; Fri, 17 Jul 2020 21:26:19 +0000 (UTC) (envelope-from gbe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06HLQJfT001272; Fri, 17 Jul 2020 21:26:19 GMT (envelope-from gbe@FreeBSD.org) Received: (from gbe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06HLQJrj001271; Fri, 17 Jul 2020 21:26:19 GMT (envelope-from gbe@FreeBSD.org) Message-Id: <202007172126.06HLQJrj001271@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gbe set sender to gbe@FreeBSD.org using -f From: Gordon Bergling Date: Fri, 17 Jul 2020 21:26:19 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r54360 - head/en_US.ISO8859-1/books/handbook/jails X-SVN-Group: doc-head X-SVN-Commit-Author: gbe X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/handbook/jails X-SVN-Commit-Revision: 54360 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2020 21:26:20 -0000 Author: gbe Date: Fri Jul 17 21:26:19 2020 New Revision: 54360 URL: https://svnweb.freebsd.org/changeset/doc/54360 Log: 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 Modified: head/en_US.ISO8859-1/books/handbook/jails/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/jails/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/jails/chapter.xml Fri Jul 17 20:49:36 2020 (r54359) +++ head/en_US.ISO8859-1/books/handbook/jails/chapter.xml Fri Jul 17 21:26:19 2020 (r54360) @@ -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 +