freebsd-update jail

From: Julien Cigar <julien_at_perdition.city>
Date: Fri, 28 Jan 2022 10:30:32 UTC
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)

Thanks!

Julien


-- 
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.