Re: freebsd-update jail

From: Christoph Brinkhaus <c.brinkhaus_at_t-online.de>
Date: Fri, 28 Jan 2022 13:16:38 UTC
Am Fri, Jan 28, 2022 at 12:07:54PM +0100 schrieb Julien Cigar:

Hello Julien!

> I was also wondering why does (12.3) freebsd-update creates a new boot
> environment when updating a jail?
> 

I have no idea.

> On Fri, Jan 28, 2022 at 11:30:32AM +0100, Julien Cigar wrote:
> > Hello,
> > 
> > I was wondering what is the best way to upgrade a jail nowadays?
> > 
> > I usually use:
> > 
> > $> freebsd-update -b /jails/myjail -d /jails/myjail/var/db/freebsd-update/ -f /jails/myjail/etc/freebsd-update.conf -r new-RELEASE --currently-running old-RELEASE upgrade
> > 
> > but I was wondering if, with the newly "-j" option, "-b" is still
> > necessary? (from what I can understand in the source code it is not)
> > 
> > so could I used something like:
> > 
> > $> freebsd-update -j myjail -r new-RELEASE -d /jails/myjail/var/db/freebsd-update/ -f /jails/myjail/etc/freebsd-update.conf upgrade ?
> > 
> > (I usually use -f as the Components aren't the same in the jail as in
> > the HOST, for example kernel is not installed, nor src)

As far as I remember I have run the latest upgrade as
freebsd-update -b /jails/myjail -r new-RELEASE --currently-running old-RELEASE upgrade

I have not been aware of the -d and -f options.

> No trees were killed in the creation of this message.
> However, many electrons were terribly inconvenienced.

This is a nice signature :-).

Kind regards,
Christoph