From nobody Tue Sep 20 22:14:10 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 4MXG6l0WPWz4cQ86 for ; Tue, 20 Sep 2022 22:14:23 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4MXG6l02vjz3TXB for ; Tue, 20 Sep 2022 22:14:23 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663712063; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ha0TvNYYaZCykTGG1Vwbo438Yo37nZM/l6dz3eY2Jy4=; b=mJPP+Z1yM8TNS3PZABV+pyF5MLfgdDDOcFAvpkZYCAHtgmZM8Yb1MGsBqtfDA1qMOYTekL GUCEmrNrr2kJRNzYfylZfWlA1vyHcsZMQrLnJ505ZTDyjz0ixMJf3M3cAjyt66xLYTHxL7 oT2cMOktVV1Y4xBgL8xblRhtNYewlcxMIBqy561fn7ZHdrOg08z9xp7kW+uKwuEreqpNyk k9LrDPoMo5L//33g51YUUrndr2rBZ3f9ejy/TICQ0S3eFvD+zm5UGSAjvusa0Cv+jowrNl Hqu1v7LNLXxVuChfHspQeTvZy6CD4fL73lRaWJU6TCXwik1caOTLlQq0mXeFyQ== Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) (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 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MXG6k5xMPz1Cjl for ; Tue, 20 Sep 2022 22:14:22 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vk1-f180.google.com with SMTP id g185so2186898vkb.13 for ; Tue, 20 Sep 2022 15:14:22 -0700 (PDT) X-Gm-Message-State: ACrzQf2kLTe9xHSxd8WvxAWgFqkMZ+JEHxH7fdsKw90U0dWqetwcnVOM YVQmoxhsFmoxk/UbTJ/w+mywSxG8jVb3zcFSknA= X-Google-Smtp-Source: AMsMyM7bksxQcpR6BxmHB1UBaytYVjuEwHeYbnhLnqqKq+wTFshbaNFYVCKLSxC7YeO4KNyWJ1t2+2hC2twitF4V4OA= X-Received: by 2002:a1f:24d5:0:b0:3a2:f067:66f6 with SMTP id k204-20020a1f24d5000000b003a2f06766f6mr9327443vkk.13.1663712062030; Tue, 20 Sep 2022 15:14:22 -0700 (PDT) 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 From: Nuno Teixeira Date: Tue, 20 Sep 2022 23:14:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Good practices with bectl To: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000774b4405e9232637" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663712063; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ha0TvNYYaZCykTGG1Vwbo438Yo37nZM/l6dz3eY2Jy4=; b=P8VBb7ZN6wK9RVjhKEd7xkkb4ooTsQXvvvPlc7CUZf5acbQykHu4c3jjgRFjoq7btBLS7X pD04mlT33y2Jw2RtSNb4y+Zl6j0GBPmG0o9nZ0pNOyEkQl/nv7JcKXpIVDncsvh+MAb2n2 MrdexHqkHx8bUBNVoRw5pm+0NFpSVGOMXF1dY38vGbDWOuUK2XToBinypYvc92vIX4T58U 0oNGDE+kKVtByOCmHGUajD3reoDyhp2JdZp3esgxaBqFCO22lBgvKJn/8syM98FMPnqktO mceGhq8W1mcYAb8/6hAmvXnVbvxz7nd4AlYwi/PIWmAvr3AnNU4GAD7SZZkLKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663712063; a=rsa-sha256; cv=none; b=V1fNlrL7/QanAt6zde/k8xCTwqZUH0MxXi7pppGFmZgiGajyhO0GlGbzQlgaMt18e9m4HJ F94ESTyYAD8R2u6gSthEwwR2wGpN6HuEH1/7vvJcd59MKqlLTow+tFtbE1CTZj3BYs8Sxn 8otsWSlz6eNwweqRn5aNPAxBHDCAWX+siF2zy/G5WkVSgSZ4Wnzn/ptquCOyx5cWM5+uCK WAd4Vpc+x8zPlnL92BGu3vg+74qFxNq0byhLPZEUVSVUYb7Ws7TBys5z9Ev83y/y2LsRLF DXuhdwVOJyXD7YYq/VQYjxD3nS9/4Wv/KFK28VKfB87Ok4RKtXpCmsarwbZprQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --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
Hello to all,

I will use bec= l for the first time for current upgrades.
Just to check that I&#= 39;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 defau= lt 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--