Re: Good practices with bectl
- Reply: Nuno Teixeira : "Re: Good practices with bectl"
- Reply: Graham Perrin : "Re: Good practices with bectl"
- In reply to: Nuno Teixeira : "Re: Good practices with bectl"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Sep 2022 13:47:27 UTC
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