From ml@ft-c.de Fri Jan 24 22:29:28 2025 X-Original-To: freebsd-stable@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 4Yfstp2KTsz5lVn2 for ; Fri, 24 Jan 2025 22:29:38 +0000 (UTC) (envelope-from ml@ft-c.de) Received: from einhorn-mail-out.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) (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 "mail.in-berlin.de", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yfstm3GKmz3q4J for ; Fri, 24 Jan 2025 22:29:36 +0000 (UTC) (envelope-from ml@ft-c.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of ml@ft-c.de designates 192.109.42.8 as permitted sender) smtp.mailfrom=ml@ft-c.de; dmarc=none X-Envelope-From: ml@ft-c.de X-Envelope-To: Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id 50OMTSok4125844 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Fri, 24 Jan 2025 23:29:29 +0100 Message-ID: Subject: Re: jail portupgrade different OS Version? --- solved From: ft Reply-To: freebsd-stable@freebsd.org To: freebsd-stable@freebsd.org Date: Fri, 24 Jan 2025 23:29:28 +0100 In-Reply-To: <1885815318.14331.1737283790527@localhost> References: <1885815318.14331.1737283790527@localhost> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 FreeBSD GNOME Team List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 X-Spamd-Result: default: False [2.07 / 15.00]; REPLYTO_EQ_TO_ADDR(5.00)[]; RBL_SENDERSCORE_REPUT_9(-1.00)[192.109.42.8:from]; NEURAL_HAM_SHORT(-0.93)[-0.928]; NEURAL_HAM_LONG(-0.92)[-0.922]; R_SPF_ALLOW(-0.20)[+ip4:192.109.42.0/24]; ONCE_RECEIVED(0.20)[]; NEURAL_SPAM_MEDIUM(0.12)[0.124]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[192.109.42.8:from]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[ft-c.de]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; HAS_REPLYTO(0.00)[freebsd-stable@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:29670, ipnet:192.109.42.0/24, country:DE]; SUBJECT_HAS_QUESTION(0.00)[] X-Spamd-Bar: ++ X-Rspamd-Queue-Id: 4Yfstm3GKmz3q4J Hello,=20 the solution is: export UNAME_r=3D13.1-RELEASE-p3 before portupgrade Franz On Sun, 2025-01-19 at 11:49 +0100, Ronald Klop wrote: > The jail sees the version of the real kernel. >=20 > You can fake this version by doing: > export UNAME_r=3D13.1 > before running portupgrade >=20 > You can also set OSRELEASE=3D13 in jail.conf.=C2=A0 >=20 > From the top of my head, so exact syntax might be different.=C2=A0 >=20 > Regards, > Ronald.=C2=A0 >=20 > Van: ft > Datum: 18 januari 2025 19:33 > Aan: freebsd-stable@freebsd.org > Onderwerp: jail portupgrade different OS Version? > > Hello,=20 > >=20 > > last week I created new jails.=C2=A0 > >=20 > > $ pkg update ; pkg install=C2=A0... > > works fine inside jails. > >=20 > > Now it is not possible to start portupgrade inside jails.=C2=A0 > > Before I have done: portsnap fetch update > >=20 > > Here are the error-message: > >=20 > > on host: > > $=C2=A0 freebsd-version > > 14.1-RELEASE-p3 > >=20 > > $=C2=A0 uname -a > > FreeBSD ftc 14.1-RELEASE-p3 FreeBSD 14.1-RELEASE-p3 GENERIC amd64 > >=20 > > in jail: > > $=C2=A0 freebsd-version > > 13.1-RELEASE > >=20 > > $=C2=A0 uname -a > > FreeBSD jail_pg01 14.1-RELEASE FreeBSD 14.1-RELEASE-p3 GENERIC amd64 > >=20 > > in jail I get an error:=20 > > $=C2=A0 portupgrade -h > > make: "/usr/ports/Mk/bsd.port.mk" line 1191: UNAME_r (14.1-RELEASE) and > > OSVERSION (1301000) do not agree on major version number. > > /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:237:in `join': no > > implicit > > conversion of nil into String (TypeError) > > @index_file =3D ENV['PORTS_INDEX'] || File.join(indexdir, indexfile || > > 'INDEX') > > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:237:in > > `index_file' > > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:247:in `db_d= ir=3D' > > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:167:in `setu= p' > > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/pkgtools.rb:242:in > > `init_pkgtools_global' > > from /usr/local/sbin/portupgrade:531:in `block in main' > > from /usr/local/lib/ruby/3.2/optparse.rb:1153:in `initialize' > > from /usr/local/sbin/portupgrade:238:in `new' > > from /usr/local/sbin/portupgrade:238:in `main' > > from /usr/local/sbin/portupgrade:2380:in `' > >=20 > > What should I do? > >=20 > > Franz > >=20 > >=20 > >=20 > >=20 >=20 >=20 >=20