From nobody Wed Sep 21 00:58:34 2022 X-Original-To: freebsd-current@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 4MXKmD3j1mz4csGW for ; Wed, 21 Sep 2022 00:58:36 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MXKmD353Lz3q8h for ; Wed, 21 Sep 2022 00:58:36 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663721916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5wDKIEffhSaGN9ck4ekEinSmM3VeWT3useXrAx+CzC0=; b=i367kMvvIQ89W1DXfFi1ZhufvrmJ/danh/A3Sj4zs9tDrq/S+ip9MjLyNhzNbE1b6/+MRC rcChdgFmqScbGXob9HxfV4Ilw5o7nVyyIgAj/GA9FMVyNxpPi66tYJuY55HuDSYqk2eM/u q2+xx2OVOCLVHWaVpGLFuIXaqV9SPBTto+y9SG2mDJQIC29cnN8U0eDxKVemYTNX1+L/IR /+bEuE2hTTAqgITsQSkwbE/10vjp4RMgEpytyISYKHaawFXPd4N7Mq2TF2RBrKTdewrdRg dUMIwewjSxdWkqhmXLhHxRpHkxbt59kO61iuZW9r+uvh+ena2xmN7tTRtokBaw== Received: from [IPV6:2001:470:1f1c:a0::2] (tunnel642390-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:a0::2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: grahamperrin) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MXKmD0g5Dz1Clj for ; Wed, 21 Sep 2022 00:58:35 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) Message-ID: Date: Wed, 21 Sep 2022 01:58:34 +0100 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Good practices with bectl Content-Language: en-GB From: Graham Perrin To: freebsd-current@freebsd.org References: <35f04731-8daa-53de-d28a-96bae81146ca@freebsd.org> Organization: FreeBSD In-Reply-To: <35f04731-8daa-53de-d28a-96bae81146ca@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------GIsyHtbl4jog0QzcOyN0Uxp7" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663721916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5wDKIEffhSaGN9ck4ekEinSmM3VeWT3useXrAx+CzC0=; b=vuXBZKFe5b9joYRXT1mG1+ka9oDAfPNQMeEx9mU13A1U968+eflQPemmZXC1qFKu2xA8WB CX8jtDe8FkHaGUQwlKHajrpfd6SXfNgWTkr7dGgBkuOvh74Lhzc3MSF8+Zn3Xinfzrkqwq Gwnaiw7/04DRu58Wh4668vBsWyJOuOdljVmQQ/eFF/XVsbapCJjBB/VDuM3bT5/z/rFZ3t RpHR3WTwhyB7fUFBBz8xd0nfMlWz5tLMHmbQeCjbOcdQGIBXXEcX+rMAKAfSvX7R0cRT+G OHj9vRY3yYjbZGrJjkvJkYXT7kUozSyNdSE0IhBzeIuaLa8oqy5apptjyqNcsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663721916; a=rsa-sha256; cv=none; b=XvXeBhNHTsdJk85QYeq3keCu0lchFtclfqz+Kk8KeuNV5KUlZJpSzVNYVrsCDlvH6UP7kL 6fSAkqA3rKjOb2+922Lc5tOVCJeuiZwtNZovQosSBKlbpV/gnbrlbDHWHM5aYC34XzqT/t D7JMt10wtpmWPVpH0JAjrTmu0VnZpZTCcv652om3eJULTAoGYnf9mEnDLCmiE9vc7ylwIo C3i9Kve2L5ifh6Yd8k/EgH4V9OWiFjnx5OZ+pGxwytzj2TyvGXXFvK8GR5dJwirc2WEf7e ImU0rM3f3kBKVPpB+4fJ/RPB46nvVvGmfqrvwpKB+eCGawAq1Wq8a7+Be8Q19A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------GIsyHtbl4jog0QzcOyN0Uxp7 Content-Type: multipart/mixed; boundary="------------KP1dm86mfNCMQJibQVdDeCo8"; protected-headers="v1" From: Graham Perrin To: freebsd-current@freebsd.org Message-ID: Subject: Re: Good practices with bectl References: <35f04731-8daa-53de-d28a-96bae81146ca@freebsd.org> In-Reply-To: <35f04731-8daa-53de-d28a-96bae81146ca@freebsd.org> --------------KP1dm86mfNCMQJibQVdDeCo8 Content-Type: multipart/alternative; boundary="------------QcMdX50ea4qYF0xAJeA1JU26" --------------QcMdX50ea4qYF0xAJeA1JU26 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMjEvMDkvMjAyMiAwMTo0NywgR3JhaGFtIFBlcnJpbiB3cm90ZToNCj4NCj4gT24gMjAv MDkvMjAyMiAyMzoxNCwgTnVubyBUZWl4ZWlyYSB3cm90ZToNCj4NCj4+IEhlbGxvIH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JFTlQgbWlnaHQgDQpiZSBhY2NpZGVudGFsbHkg cmVwZWF0ZWQgd2l0aCBSRUxFQVNFLikNCg0KRm9yIHVwZGF0ZXMvdXBncmFkZXMgdG8gQ1VS UkVOVDogSSBkbyBwcmVmZXIgdG8gY3JlYXRlLCBhY3RpdmF0ZSB0aGVuIA0KYm9vdCBhbiBl bnZpcm9ubWVudCBiZWZvcmUgaW5zdGFsbGluZy4NCg0KLS0tLQ0KDQpXaXRoIHRoZSBhbHRl cm5hdGl2ZSAoYSBzbmFwc2hvdCB0aGF0J3Mgbm90IGFjdGl2ZSksIGFuZCBhIERlZmF1bHQg Ym9vdCANCmVudmlyb25tZW50LCB0aGluZ3MgY2FuIGJlY29tZSBjb25mdXNpbmcgd2hlbiB0 aGUgcHJlZmVycmVkIGVudmlyb25tZW50IA0KaXMgbm8gbG9uZ2VyIERlZmF1bHQsIGVzcGVj aWFsbHkgaWYgKGluIHJhcmUgc2l0dWF0aW9ucykgRGVmYXVsdCBiZWNvbWVzIA0Kbm8gbG9u Z2VyIGJvb3RhYmxlLiBOZWVkIHRvIHRoaW5rIF92ZXJ5XyBjYXJlZnVsbHkgYWJvdXQgbmFt ZXMgYW5kIHRoZSANCmFwcHJvcHJpYXRlbmVzcyBvZiByZW5hbWluZy4NCg0K --------------QcMdX50ea4qYF0xAJeA1JU26 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 21/09/2022 01:47, Graham Perrin wrote:

On 20/09/2022 23:14, Nuno Teixeira wrote:

Hello to all,

I will use becl for the first time for current upgrades.
Just to check that I'm thinking correctly:

Create a test environment for upgrade:
> bectl create -r test (should I use '-r'?)
Activate test:
> bectl activate test
> reboot
...
> upgrade OS on test
=E2=80=A6
If using freebsd-update(8) to perform the upgrade: please be aware that, with recent releases of the OS, there's automated creation of a snapshot of a boot environment.

<https://www.freebsd.org/cgi/man.cg= i?query=3Dfreebsd-update.conf&sektion=3D5&manpath=3DFreeBSD>, CreateBootEnv

Omitted from release notes; sorry.

True: no freebsd-update for CURRENT, however I'm raising awareness of the automation. (My own experience: a habit adopted with CURRENT might be accidentally repeated with RELEASE.)

For updates/upgrades to CURRENT: I do prefer to create, activate then boot an environment before installing.

----

With the alternative (a snapshot that's not active), and a Default boot environment, things can become confusing when the preferred environment is no longer Default, especially if (in rare situations) Default becomes no longer bootable. Need to think _very_ carefully about names and the appropriateness of renaming.

--------------QcMdX50ea4qYF0xAJeA1JU26-- --------------KP1dm86mfNCMQJibQVdDeCo8-- --------------GIsyHtbl4jog0QzcOyN0Uxp7 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEWT/lssMHB+28ly8Kt2dIb0oY1AsFAmMqYboFAwAAAAAACgkQt2dIb0oY1AvA eA/+LNR8sCZZLfDUJr5OUcpXUd9OmfI7FaVhCrqVWQh2NQ6+ywSWe2poFihG2SCeDU0/i3tEm9Ly V3UdJaGh3q2TzoybWAQ7pdRD2GNyZHFZt7vcf6U5PMvROYKZOj4h+UMyRaPbUEDdD9B7CDSCuHDb +ceozIdX3PPSZ84w+6FljbwmGfn5/dkxMUc0ZJceQocXD3oJFUNN6Kyr+J3z80lV14fybBLrk6LV etZ/ixjhnm6elxG+AGVWUpxb9n76U293GFm77W8c9Ymy4S6fYLgqi2LMdh/JmX5ljUsq2VkRaFhl fTd6NfihiZUlpmdHKAX4F6NNo+Tj/KSP4vMVJvCQoKbLbgcuj5GRQo9fjnRw892CsjLPckr2ZxbL HbdkdknQUbU+fumbXBcEbubaipAOnpV9npKYgopy+3ckinFjpbtwm69Y8IEZ7XkDxx0i+MMgCbEX mRGdlAzr63KqDFHqcGqr6xO8qWuJ6ma4Iub9duV5/yMDXebcD8tlhfyDX6DpKM8Kfcfkyfj7vmPv US4DJhyjan7p9/UBQgqINmYYbls+5RaUJRWi/1od/GhlRsTu/3B0QkbbrNbtHqyhbxCM3H0WsY87 TaBTlOFoC2usL8uMFwnKeiWySEi3Mzf4YkxqWKLiDwY6dNO+vd43iKaZBrHNqioTDdX8yfWSxC6t QWQ= =uDAr -----END PGP SIGNATURE----- --------------GIsyHtbl4jog0QzcOyN0Uxp7--