Date: Sat, 24 Sep 2022 15:47:27 +0200 From: Daniel Tameling <tamelingdaniel@gmail.com> To: freebsd-current@freebsd.org Subject: Re: Good practices with bectl Message-ID: <Yy8Kb/b7u4EXV6KB@mail.gmail.com> In-Reply-To: <CAFDf7UL-YTNHWFLRXx0JbgotxG6TH0P=MOowh9DPt5OVaiy8TQ@mail.gmail.com> References: <CAFDf7UL42z-m9P-gp6eY-orwcPz_UdJpiAM3ab-z4XLbY0LOdg@mail.gmail.com> <CAOtMX2gdoh2XxF0ofohyBA3DY-tgB5wAWb6%2BQmMb5tZRjieEvw@mail.gmail.com> <CAFDf7UJR73_rJeFQ059LCRw=K6AL8Y__9XgZ7RdR5zcjLitY_g@mail.gmail.com> <CAFDf7UKNaqCXr_KcYUPjGzN8hhZ22v6D9E00N7f=BvT2RukBZQ@mail.gmail.com> <20220921112706.Horde.eNaqpvIqq64Qe7crIQQ9JwX@webmail.leidinger.net> <YyrmsFONtjy1jVhh@albert.catwhisker.org> <20220921124452.Horde.BSQPZ4imQhhKUUE0k3W5iFb@webmail.leidinger.net> <CAFDf7UL-YTNHWFLRXx0JbgotxG6TH0P=MOowh9DPt5OVaiy8TQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 21, 2022 at 12:08:38PM +0100, Nuno Teixeira wrote: > Summary: Using bectl for upgrades > > RELEASE=Whatever > > bectl create ${RELEASE} > > bectl mount ${RELEASE} > BASEDIR=/tmp/be_mount.XXXX # Use mount point returned by bectl mount > > [freebsd-update method] > > freebsd-update -b ${BASEDIR} -d ${BASEDIR}/var/db/freebsd-update \ > upgrade -r ${RELEASE} > > freebsd-update -b ${BASEDIR} -d ${BASEDIR}/var/db/freebsd-update install > # Ignore admonitions to reboot, since we're using a boot environment > > freebsd-update -b ${BASEDIR} -d ${BASEDIR}/var/db/freebsd-update install > > bectl activate ${RELEASE} > #> bectl activate -t ${RELEASE} # Failsafe (if the machine is too far away > to simply walk over and > switch to the old BE): > > reboot > > [upgrade from source method] > > make DESTDIR=${BASEDIR} installkernel > > etcupdate -p -D $BASEDIR > > make DESTDIR=${BASEDIR} installworld > > etcupdate -D $BASEDIR > > make DESTDIR=${BASEDIR} -DBATCH_DELETE_OLD_FILES delete-old > delete-old-libs > > bectl activate ${RELEASE} > #> bectl activate -t ${RELEASE} # Failsafe (if the machine is too far away > to simply walk over and > switch to the old BE): > > reboot > Would it be possible to add this to the handbook? I know that I will be looking for it when I upgrade next time. Best regards, Daniel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Yy8Kb/b7u4EXV6KB>