Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2022 23:14:10 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Good practices with bectl
Message-ID:  <CAFDf7UL42z-m9P-gp6eY-orwcPz_UdJpiAM3ab-z4XLbY0LOdg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000774b4405e9232637
Content-Type: text/plain; charset="UTF-8"

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
> reboot
...
if a problem happens, reboot default from BE loader
---
if everything fine destroy default and rename test to default
> bectl destroy -o default
> bectl rename test default
repeat on next upgrade

Don't know if a faster way exists with chroot or bectl jail...

Any hints appreciated.

Thanks,
-- 
Nuno Teixeira
FreeBSD Committer (ports)

--000000000000774b4405e9232637
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello to all,</div><div><br></div><div>I will use bec=
l for the first time for current upgrades.</div><div>Just to check that I&#=
39;m thinking correctly:</div><div><br></div><div>Create a test environment=
 for upgrade:</div><div>&gt; bectl create -r test (should I use &#39;-r&#39=
;?)<br></div><div>Activate test:</div><div>&gt; bectl activate test</div><d=
iv>&gt; reboot<br></div><div>...</div><div>&gt; upgrade OS on test</div><di=
v>&gt; reboot</div><div>...</div><div>if a problem happens, reboot default =
from BE loader</div><div>---<br></div><div>if everything fine destroy defau=
lt and rename test to default<br></div><div>&gt; bectl destroy -o default</=
div><div>&gt; bectl rename test default</div><div>repeat on next upgrade</d=
iv><div><br></div><div>Don&#39;t know if a faster way exists with chroot or=
 bectl jail...</div><div><br></div><div>Any hints appreciated.</div><div><b=
r></div><div>Thanks,<br>-- <br><div dir=3D"ltr" class=3D"gmail_signature" d=
ata-smartmail=3D"gmail_signature"><div dir=3D"ltr"><span style=3D"color:rgb=
(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div=
></div></div>

--000000000000774b4405e9232637--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UL42z-m9P-gp6eY-orwcPz_UdJpiAM3ab-z4XLbY0LOdg>