git: 80b003e81684 - releng/14.0 - freebsd-update: add a note about when files may be deleted

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 13 Oct 2023 23:35:33 UTC
The branch releng/14.0 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=80b003e816849b7809e7c64e01bf3acd543e4357

commit 80b003e816849b7809e7c64e01bf3acd543e4357
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-09-29 15:47:41 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-10-13 23:17:39 +0000

    freebsd-update: add a note about when files may be deleted
    
    Files under /var/db/freebsd-update are required during the upgrade
    process, and to support rollback.  They may be deleted if no upgrade is
    in progress and rollback will not be required.
    
    PR:             273601
    Reviewed by:    bcr
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D42022
    
    (cherry picked from commit 30beebe444f5f415a388be9df91107246bd32674)
    (cherry picked from commit ffe4456d7d9f2c6bb14e9b747766adc3042f0b9e)
    
    Approved by:    re (gjb)
---
 usr.sbin/freebsd-update/freebsd-update.8 | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/freebsd-update/freebsd-update.8 b/usr.sbin/freebsd-update/freebsd-update.8
index 471ae359c917..0d50ac8822de 100644
--- a/usr.sbin/freebsd-update/freebsd-update.8
+++ b/usr.sbin/freebsd-update/freebsd-update.8
@@ -23,7 +23,7 @@
 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd September 10, 2022
+.Dd October 4, 2023
 .Dt FREEBSD-UPDATE 8
 .Os
 .Sh NAME
@@ -251,7 +251,11 @@ configuration file.
 .It Pa /var/db/freebsd-update/
 Default location where
 .Nm
-stores temporary files and downloaded updates.
+stores temporary files, downloaded updates, and files required for rollback.
+All files under
+.Pa /var/db/freebsd-update/
+may be deleted if an upgrade is not in progress and rollback will not be
+required.
 .El
 .Sh SEE ALSO
 .Xr freebsd-version 1 ,