Date: Fri, 28 Jan 2022 14:26:50 +0100 From: Julien Cigar <julien@perdition.city> To: Christoph Brinkhaus <c.brinkhaus@t-online.de> Cc: questions@freebsd.org Subject: Re: freebsd-update jail Message-ID: <20220128132650.7rgksy5tlteykme7@x1> In-Reply-To: <YfPstiAbKtOHhTNc@esprimo> References: <20220128103032.mts7xrgy3k5ghbgo@x1> <20220128110754.znqx2z2ciw4hi4xo@x1> <YfPstiAbKtOHhTNc@esprimo>
next in thread | previous in thread | raw e-mail | index | archive | help
--svsq4h6ajhwr3ocv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > Hello Julien! >=20 > > I was also wondering why does (12.3) freebsd-update creates a new boot > > environment when updating a jail? > >=20 >=20 > I have no idea. I found PR 261446=20 >=20 > > On Fri, Jan 28, 2022 at 11:30:32AM +0100, Julien Cigar wrote: > > > Hello, > > >=20 > > > I was wondering what is the best way to upgrade a jail nowadays? > > >=20 > > > I usually use: > > >=20 > > > $> freebsd-update -b /jails/myjail -d /jails/myjail/var/db/freebsd-up= date/ -f /jails/myjail/etc/freebsd-update.conf -r new-RELEASE --currently-r= unning old-RELEASE upgrade > > >=20 > > > 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) > > >=20 > > > so could I used something like: > > >=20 > > > $> freebsd-update -j myjail -r new-RELEASE -d /jails/myjail/var/db/fr= eebsd-update/ -f /jails/myjail/etc/freebsd-update.conf upgrade ? > > >=20 > > > (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) >=20 > As far as I remember I have run the latest upgrade as > freebsd-update -b /jails/myjail -r new-RELEASE --currently-running old-RE= LEASE upgrade >=20 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. >=20 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. >=20 > This is a nice signature :-). >=20 :-) > Kind regards, > Christoph >=20 >=20 --=20 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. --svsq4h6ajhwr3ocv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEnF27CBNtOraRNmgqCLYqJMpBHmkFAmHz7xcACgkQCLYqJMpB HmmrSw/+MEkiOIdjXCS5jM+03iKCLU/g5c+ISdrwig6Ebr6PTC/d+eHROS5tESxQ PUzwLduFpxkpMCRKKOnVNDyVStyL1yV+HfyBXq9CL1TeQrdJ4qYttfCXxpKK68O5 T2upZNInJjNmx/xfSPC2X1ci732mc7s5+4+e9MDb+85NRkHnPihBpwf9KfHZfWpm +x1TCzomRMiDKSxVc0HPbmiInwN8apUxAKqUFl0QP/qqC4nFW8r4FjxXP2R8wd52 2jJqTYFMugAkR+3EUR5+XXRqqxYZPyvxtV4czG/uD/7IKRRcRJ9nUL0SXxlPXd5G T8GUsp7/Oeg2MStvboQIUJgUEFb8s0C9VRj8nzAaIapgE61GxJGwqDC5Er/HWSuN FwOHe/LH2wf787314eRMj3OGnlkwzf35VG6G4sH21Qh1AYWDz+swT0k0htImQyGJ awyw5go1abDhYuClvPZMQKOTUaTObOrnsGTu4Fkto/rj+uwhwj8sOHwpsbO3Gmio Cj/+fhN2OFJz2O64Wdom12RTRGkMeh40/G4Pe5yZUBd6xFYQCS+MYtOHe87jlkwh hgFIRxNtqp9MCUaukrnZEh8+8ZVp4ilkNvYDwNKs3xcRQ6zfXLWhULxS9VAheEI/ HNk++akDV7469108RC4cHirWtyVDho7edhCtYK/EVwKqw/4qNXU= =fSvx -----END PGP SIGNATURE----- --svsq4h6ajhwr3ocv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220128132650.7rgksy5tlteykme7>