Date: Wed, 21 Sep 2022 01:58:34 +0100 From: Graham Perrin <grahamperrin@freebsd.org> To: freebsd-current@freebsd.org Subject: Re: Good practices with bectl Message-ID: <efa8ab8f-ce46-5035-9df5-f13e0cb980c6@freebsd.org> In-Reply-To: <35f04731-8daa-53de-d28a-96bae81146ca@freebsd.org> References: <CAFDf7UL42z-m9P-gp6eY-orwcPz_UdJpiAM3ab-z4XLbY0LOdg@mail.gmail.com> <35f04731-8daa-53de-d28a-96bae81146ca@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------GIsyHtbl4jog0QzcOyN0Uxp7 Content-Type: multipart/mixed; boundary="------------KP1dm86mfNCMQJibQVdDeCo8"; protected-headers="v1" From: Graham Perrin <grahamperrin@freebsd.org> To: freebsd-current@freebsd.org Message-ID: <efa8ab8f-ce46-5035-9df5-f13e0cb980c6@freebsd.org> Subject: Re: Good practices with bectl References: <CAFDf7UL42z-m9P-gp6eY-orwcPz_UdJpiAM3ab-z4XLbY0LOdg@mail.gmail.com> <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+IEhlbGxvIHRvIGFs bCwNCj4+DQo+PiBJIHdpbGwgdXNlIGJlY2wgZm9yIHRoZSBmaXJzdCB0aW1lIGZvciBjdXJy ZW50IHVwZ3JhZGVzLg0KPj4gSnVzdCB0byBjaGVjayB0aGF0IEknbSB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XIgdG8gY3JlYXRlLCBhY3RpdmF0ZSB0aGVuIA0KYm9vdCBhbiBl bnZpcm9ubWVudCBiZWZvcmUgaW5zdGFsbGluZy4NCg0KLS0tLQ0KDQpXaXRoIHRoZSBhbHRl cm5hdGl2ZSAoYSBzbmFwc2hvdCB0aGF0J3Mgbm90IGFjdGl2ZSksIGFuZCBhIERlZmF1bHQg Ym9vdCANCmVudmlyb25tZW50LCB0aGluZ3MgY2FuIGJlY29tZSBjb25mdXNpbmcgd2hlbiB0 aGUgcHJlZmVycmVkIGVudmlyb25tZW50IA0KaXMgbm8gbG9uZ2VyIERlZmF1bHQsIGVzcGVj aWFsbHkgaWYgKGluIHJhcmUgc2l0dWF0aW9ucykgRGVmYXVsdCBiZWNvbWVzIA0Kbm8gbG9u Z2VyIGJvb3RhYmxlLiBOZWVkIHRvIHRoaW5rIF92ZXJ5XyBjYXJlZnVsbHkgYWJvdXQgbmFt ZXMgYW5kIHRoZSANCmFwcHJvcHJpYXRlbmVzcyBvZiByZW5hbWluZy4NCg0K --------------QcMdX50ea4qYF0xAJeA1JU26 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html data-lt-installed=3D"true"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF= -8"> </head> <body> <div class=3D"moz-cite-prefix">On 21/09/2022 01:47, Graham Perrin wrote:<br> </div> <blockquote type=3D"cite" cite=3D"mid:35f04731-8daa-53de-d28a-96bae81146ca@freebsd.org"> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DU= TF-8"> <p>On 20/09/2022 23:14, Nuno Teixeira wrote:<br> </p> <blockquote type=3D"cite" cite=3D"mid:CAFDf7UL42z-m9P-gp6eY-orwcPz_UdJpiAM3ab-z4XLbY0LOdg@mail.gmai= l.com"> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-8"> <div dir=3D"ltr"> <div>Hello to all,</div> <div><br> </div> <div>I will use becl for the first time for current upgrades.</= div> <div>Just to check that I'm thinking correctly:</div> <div><br> </div> <div>Create a test environment for upgrade:</div> <div>> bectl create -r test (should I use '-r'?)<br> </div> <div>Activate test:</div> <div>> bectl activate test</div> <div>> reboot<br> </div> <div>...</div> <div>> upgrade OS on test</div> =E2=80=A6<br> </div> </blockquote> 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. <br> <p><a class=3D"moz-txt-link-rfc2396E" href=3D"https://www.freebsd.org/cgi/man.cgi?query=3Dfreebsd-update.conf&a= mp;sektion=3D5&manpath=3DFreeBSD" moz-do-not-send=3D"true"><https://www.freebsd.org/cgi/man.cg= i?query=3Dfreebsd-update.conf&sektion=3D5&manpath=3DFreeBSD></= a>, CreateBootEnv</p> <p>Omitted from release notes; sorry. <br> </p> <lt-container></lt-container> </blockquote> <p>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.)</p> <p>For updates/upgrades to CURRENT: I do prefer to create, activate then boot an environment before installing. <br> </p> <p>----</p> <p>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. <br> </p> </body> </html> --------------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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?efa8ab8f-ce46-5035-9df5-f13e0cb980c6>