From owner-dev-commits-src-all@freebsd.org Fri Jul 16 13:01:16 2021 Return-Path: Delivered-To: dev-commits-src-all@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 7028A66167D; Fri, 16 Jul 2021 13:01:16 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GRBFS1tsHz3Mkf; Fri, 16 Jul 2021 13:01:16 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f53.google.com with SMTP id t4-20020a05683014c4b02904cd671b911bso1694740otq.1; Fri, 16 Jul 2021 06:01:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DE6weTYt9AQXUmMI1n7nbHeaynF0EdWBKDOB1WNRN2Q=; b=lJ8o7mG0c+X23lUbKy1ca9aVbZgNdOHL7l1IRlOaSptNHPmU/ttT4Imv7JEWVgKtlE J+Z9L3CRKYJ3YK6I8IXtDdeTjFSwn8VoHarBZoEHxOmD3YkoPKzZTQbvenmD+uYdrT4y beVj2DIjF18pO1G5TU5B7hJRsIDOtR2OmRUZsNBR8m9K6obwBXfFfo3WUj23ebg0708B /DWqELEDG2hgJfAadODlahRAGKZsHqMuYRUUtRirwuRD8kVUaVk0TS59citMbfwVbJov pGeSAbrNRn957lYK4GrtJHJ4MQuJincza5Bf09KoPIM4Jh07kZD3rLGa2EvTDi+FcLhO aIYA== X-Gm-Message-State: AOAM5320E+gUKQwc4P8snBPyCdKRdA2JBcnR03KoBBtI2EYgIV7QD48/ KAIjnyKbWUDR/uRxbBKdwFWPvYJ/DrFb6xx1FcQM44cwFJs= X-Google-Smtp-Source: ABdhPJz5BpCZFGKmDIiGnYv6lSkAtIhaIKwCtsZPp29IfuAX4lLWjgcidTZwI8Y+rRDq9X0QArinpZjjqZgbYoOzeOk= X-Received: by 2002:a9d:7982:: with SMTP id h2mr7686787otm.291.1626440474867; Fri, 16 Jul 2021 06:01:14 -0700 (PDT) MIME-Version: 1.0 References: <202107160407.16G47SO1089378@gitrepo.freebsd.org> In-Reply-To: <202107160407.16G47SO1089378@gitrepo.freebsd.org> From: Alan Somers Date: Fri, 16 Jul 2021 07:01:03 -0600 Message-ID: Subject: Re: git: f28f13890541 - main - freebsd-update: create a ZFS boot environment on install To: Kyle Evans Cc: src-committers , "" , dev-commits-src-main@freebsd.org X-Rspamd-Queue-Id: 4GRBFS1tsHz3Mkf X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2021 13:01:16 -0000 On Thu, Jul 15, 2021 at 10:07 PM Kyle Evans wrote: > The branch main has been updated by kevans: > > URL: > https://cgit.FreeBSD.org/src/commit/?id=f28f138905416c45ebaa6429f44a0b88a72f54b1 > > commit f28f138905416c45ebaa6429f44a0b88a72f54b1 > Author: Dave Fullard > AuthorDate: 2021-07-16 04:02:48 +0000 > Commit: Kyle Evans > CommitDate: 2021-07-16 04:07:00 +0000 > > freebsd-update: create a ZFS boot environment on install > > Updated freebsd-update to allow it to create boot environments using > bectl should the system support it. The bectl utility was updated in > r352211 (490e13c1403f) to support a 'check' to determine if the system > supports boot environments. If UFS is used, the bectl check will fail > then no attempt will be made to create the boot environment. > > If freebsd-update is run inside a jail, no attempt will be made to > create a boot environment. > > The boot environment function will create a new environment using the > format: current FreeBSD kernel version and date/timestamp, example: > > 12.0-RELEASE-p10_2019-10-03_185233 > > This functionality can be disabled by setting 'CreateBootEnv' in > freebsd-update.conf to 'no'. > > Discussed with: allanjude > MFC after: 1 week > Differential Revision: https://reviews.freebsd.org/D21892 > --- > usr.sbin/freebsd-update/freebsd-update.conf | 3 ++ > usr.sbin/freebsd-update/freebsd-update.sh | 57 > +++++++++++++++++++++++++++++ > 2 files changed, 60 insertions(+) > Ooh, are you getting ready to make freebsd-update install upgrades into a fresh BE? That would be pretty cool. It's already cool that you can do it today, but it takes about 10 commands instead of one.