Re: freebsd-update jail
- In reply to: Christoph Brinkhaus : "Re: freebsd-update jail"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Jan 2022 13:26:50 UTC
On Fri, Jan 28, 2022 at 02:16:38PM +0100, Christoph Brinkhaus wrote: > 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. I found PR 261446 > > > 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 > freebsd-update has been updated with a -j (operate on the given jail specified by jid or name) so --currently-running is no more required when using -j. I was wondering about -b, but after testing it seems that -b is no more required too, so the following works: $> sudo freebsd-update -j myjail -r new-RELEASE upgrade > I have not been aware of the -d and -f options. > I was using a separate -f as Components differ, but it looks like freebsd-update detects is nowadays (so not required anymore) > > No trees were killed in the creation of this message. > > However, many electrons were terribly inconvenienced. > > This is a nice signature :-). > :-) > Kind regards, > Christoph > > -- 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.