From nobody Thu Feb 24 13:46:57 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 86B3D19E7099; Thu, 24 Feb 2022 13:46:57 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K4DjF3L5lz4byl; Thu, 24 Feb 2022 13:46:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645710417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7xNucGN0DYVQhPf6TLDBQWQCzmSaJEenpG4Qjn1YsNQ=; b=ai5iFQISRvbeY/qobDlrQ9J6ECEoob6Y2ktqhb/LXd+957EVuViH0mLvq/vgA+07aKtAcN IuVBspb5aS2K1Ynz8hzCjLdotCHU9cFhnsHpqNkB2pa3K6ANvndx2fxGckfBjzIfH/4P3H JNdh8IC4gaiE06e9qTxcSTXjxw6G3JGx7/VU5Dc4NypO0veP4d7Y2xz2kbJJqgm8pQK8sD VFzqv5YGOHukcNQ9gbWOoujpkw0mUywYgClSwyYeU2OdWikTEey2Ym0wNJOUHBeFRi3Bcl rOvvnEqWLp7Kp9752tRcl0bIUwpDOXlC64fY2eaGsVFPQvcY8MAX1a821d0Wfg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 460C34DE6; Thu, 24 Feb 2022 13:46:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21ODkv3h097166; Thu, 24 Feb 2022 13:46:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21ODkvZN097165; Thu, 24 Feb 2022 13:46:57 GMT (envelope-from git) Date: Thu, 24 Feb 2022 13:46:57 GMT Message-Id: <202202241346.21ODkvZN097165@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 8a3c868ab4e6 - stable/13 - freebsd-update.8: Document CreateBootEnv List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8a3c868ab4e66ace70367b0ba943a324841d9a63 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645710417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7xNucGN0DYVQhPf6TLDBQWQCzmSaJEenpG4Qjn1YsNQ=; b=lJLI56tq0JhzmmzE5C0Mi1rCozKOjh/p5VGCm20RRl2+e0nQiD2lQp/NE3yUx1jr31j1S0 59CPayKQmISAg1FsjRV9pntvrzzq2pBpGZFTv/lWnBt+6azvvOx0fLhM3U29F9Kt926BzM GyFqcvQZZVUYa7rO0lXbFosMSnUV+ZCII38BNXqlMc2oroVmLqANxY7H+//anBEDqClBIQ oTDVJA6JeJxl3gM2IVEiWfC2A2xZ2s4koof0ayLKkEBbEb4VehpZ1o5oj0qaNEhDYiq+fO 3evO4xu9xUZVYyDR43b+3J2Bnv5CEL1oyPLGJwdPx4/rZvxmmBkqqwGFIV395w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645710417; a=rsa-sha256; cv=none; b=Jo6eDsCCzk+mBMWOueTjwD7WZj1AqHiMSpTjOFO9aHBa83UooFXJqfazk/GP8DVl0OSSUE Ouhd07bNxPWrmI6fMhRFskYdkLg4KzgNAUqFLP8FsGexqoPZh05y74ZbIXyMuCRYqLrCqL vOjFKErXKq2wY3uMrnX7gjypt7i8JvShpK+1eQbaE8OXCNjrGrPOFMsjWfSDxsrQivkXQo DGVjXppP/N4G+5AGleUy8cfWeIq/W6WwE17wmWeKY+KP3icX9glnzYaKOuzOTnEB3fADAT 0nVSUJF1uXdDx+6hGpFUlQpsTRGgoVxH4RGiThik0m2zfFC36ii8/ponH3t1mQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=8a3c868ab4e66ace70367b0ba943a324841d9a63 commit 8a3c868ab4e66ace70367b0ba943a324841d9a63 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-02-04 10:20:49 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-02-24 13:46:24 +0000 freebsd-update.8: Document CreateBootEnv Also, add bectl(8) to section "See Also". [1] PR: 261716 Reviewed by: debdrup, pauamma_gundo.com MFC after: 1 week Fixes: f28f13890541 freebsd-update: create a ZFS boot environment on install Differential Revision: https://reviews.freebsd.org/D34169 Co-authored-by: Tobias Rehbein [1] (cherry picked from commit 6d17f2d04302af6408127b9f8a307e2977c6d086) --- share/man/man5/freebsd-update.conf.5 | 56 +++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/share/man/man5/freebsd-update.conf.5 b/share/man/man5/freebsd-update.conf.5 index 498fa15e685f..9d33e9e25171 100644 --- a/share/man/man5/freebsd-update.conf.5 +++ b/share/man/man5/freebsd-update.conf.5 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 19, 2009 +.Dd February 17, 2022 .Dt FREEBSD-UPDATE.CONF 5 .Os FreeBSD .Sh NAME @@ -218,6 +218,59 @@ backup kernel, the .Cm freebsd-update rollback command will recreate the symbol files along with the old kernel. +.It Cm CreateBootEnv +The single parameter following this keyword must be +.Dq yes +or +.Dq no +and specifies whether +.Cm freebsd-update +will create a new boot environment using +.Xr bectl 8 +when installing patches. +.Pp +The name of the new boot environment consists of the current +.Fx +version: +.Bd -literal -offset indent +freebsd-version -ku | sort -V | tail -n 1 +.Ed +.Pp +and a timestamp: +.Bd -literal -offset indent +date +"%Y-%m-%d_%H%M%S" +.Ed +.Pp +separated by a single dash, e.g.: +.Bd -literal -offset indent +13.0-RELEASE-p7_2022-02-16_141502 +.Ed +.Pp +.Cm freebsd-update +does not attempt to create a boot environment +if any of the following applies: +.Pp +.Bl -dash -compact +.It +ZFS is not used. +.It +The ZFS root is not set up for boot environments +.Po see the check command of +.Xr bectl 8 +for details +.Pc . +.It +.Cm freebsd-update +is running in a +.Xr jail 8 . +.It +.Cm freebsd-update +is updating a root directory selected via +the basedir +.Pq Fl b +or jail +.Pq Fl j +flags. .El .Sh FILES .Bl -tag -width "/etc/freebsd-update.conf" @@ -228,6 +281,7 @@ configuration file. .El .Sh SEE ALSO .Xr sha256 1 , +.Xr bectl 8 , .Xr freebsd-update 8 .Sh AUTHORS .An Colin Percival Aq Mt cperciva@FreeBSD.org