Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2022 14:16:38 +0100
From:      Christoph Brinkhaus <c.brinkhaus@t-online.de>
To:        questions@freebsd.org
Cc:        julien@perdition.city
Subject:   Re: freebsd-update jail
Message-ID:  <YfPstiAbKtOHhTNc@esprimo>
In-Reply-To: <20220128110754.znqx2z2ciw4hi4xo@x1>
References:  <20220128103032.mts7xrgy3k5ghbgo@x1> <20220128110754.znqx2z2ciw4hi4xo@x1>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YfPstiAbKtOHhTNc>