From nobody Fri Jan 28 13:16:38 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1ABF119794A2 for ; Fri, 28 Jan 2022 13:16:41 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JldJm0Gdyz4Zjd for ; Fri, 28 Jan 2022 13:16:39 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from fwd81.dcpf.telekom.de (fwd81.aul.t-online.de [10.223.144.107]) by mailout02.t-online.de (Postfix) with SMTP id D718740D5; Fri, 28 Jan 2022 14:16:38 +0100 (CET) Received: from esprimo.local ([217.226.181.197]) by fwd81.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1nDR7G-3DZ6dV0; Fri, 28 Jan 2022 14:16:38 +0100 Received: by esprimo.local (Postfix, from userid 1001) id 3AB63C0C18; Fri, 28 Jan 2022 14:16:38 +0100 (CET) Date: Fri, 28 Jan 2022 14:16:38 +0100 From: Christoph Brinkhaus To: questions@freebsd.org Cc: julien@perdition.city Subject: Re: freebsd-update jail Message-ID: References: <20220128103032.mts7xrgy3k5ghbgo@x1> <20220128110754.znqx2z2ciw4hi4xo@x1> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128110754.znqx2z2ciw4hi4xo@x1> X-TOI-EXPURGATEID: 150726::1643375798-0000BD0E-B872F034/0/0 CLEAN NORMAL X-TOI-MSGID: 5efebea6-cf3b-471b-bf62-b69a0411cdc6 X-Rspamd-Queue-Id: 4JldJm0Gdyz4Zjd X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of c.brinkhaus@t-online.de has no SPF policy when checking 194.25.134.17) smtp.mailfrom=c.brinkhaus@t-online.de X-Spamd-Result: default: False [0.40 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[194.25.134.17:from]; FREEMAIL_FROM(0.00)[t-online.de]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[t-online.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[194.25.134.17:from]; MLMMJ_DEST(0.00)[questions]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[t-online.de]; RECEIVED_SPAMHAUS_PBL(0.00)[217.226.181.197:received] X-ThisMailContainsUnwantedMimeParts: N 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