Date: Sun, 19 Jan 2025 11:49:50 +0100 (CET) From: Ronald Klop <ronald-lists@klop.ws> To: ft <ml@ft-c.de> Cc: freebsd-stable@freebsd.org Subject: Re: jail portupgrade different OS Version? Message-ID: <1885815318.14331.1737283790527@localhost> In-Reply-To: <b6f20b7a930096a75d11927ab245054ba2235fca.camel@ft-c.de>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_14330_1045256070.1737283790473 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit The jail sees the version of the real kernel. You can fake this version by doing: export UNAME_r=13.1 before running portupgrade You can also set OSRELEASE=13 in jail.conf. >From the top of my head, so exact syntax might be different. Regards, Ronald. Van: ft <ml@ft-c.de> Datum: 18 januari 2025 19:33 Aan: freebsd-stable@freebsd.org Onderwerp: jail portupgrade different OS Version? > > > Hello, > > last week I created new jails. > > $ pkg update ; pkg install ... > works fine inside jails. > > Now it is not possible to start portupgrade inside jails. > Before I have done: portsnap fetch update > > Here are the error-message: > > on host: > $ freebsd-version > 14.1-RELEASE-p3 > > $ uname -a > FreeBSD ftc 14.1-RELEASE-p3 FreeBSD 14.1-RELEASE-p3 GENERIC amd64 > > in jail: > $ freebsd-version > 13.1-RELEASE > > $ uname -a > FreeBSD jail_pg01 14.1-RELEASE FreeBSD 14.1-RELEASE-p3 GENERIC amd64 > > in jail I get an error: > $ 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 = 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_dir=' > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:167:in `setup' > 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 `' > > What should I do? > > Franz > > > > > > > > ------=_Part_14330_1045256070.1737283790473 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html><head></head><body>The jail sees the version of the real kernel.<div><br></div><div>You can fake this version by doing:</div><div>export UNAME_r=13.1</div><div>before running portupgrade</div><div><br></div><div>You can also set OSRELEASE=13 in jail.conf. </div><div><br></div><div>From the top of my head, so exact syntax might be different. </div><div><br></div><div>Regards,</div><div>Ronald. </div><div><br><p><small><strong>Van:</strong> ft <ml@ft-c.de><br><strong>Datum:</strong> 18 januari 2025 19:33<br><strong>Aan:</strong> freebsd-stable@freebsd.org<br><strong>Onderwerp:</strong> jail portupgrade different OS Version?<br></small></p><blockquote style="margin-left: 5px; border-left: 3px solid #ccc; margin-right: 0px; padding-left: 5px;"><div class="MessageRFC822Viewer do_not_remove" id="P"><!-- P --> <!-- processMimeMessage --><div class="TextPlainViewer do_not_remove" id="P.P"><!-- P.P -->Hello, <br> <br> last week I created new jails. <br> <br> $ pkg update ; pkg install ...<br> works fine inside jails.<br> <br> Now it is not possible to start portupgrade inside jails. <br> Before I have done: portsnap fetch update<br> <br> Here are the error-message:<br> <br> on host:<br> $ freebsd-version<br> 14.1-RELEASE-p3<br> <br> $ uname -a<br> FreeBSD ftc 14.1-RELEASE-p3 FreeBSD 14.1-RELEASE-p3 GENERIC amd64<br> <br> in jail:<br> $ freebsd-version<br> 13.1-RELEASE<br> <br> $ uname -a<br> FreeBSD jail_pg01 14.1-RELEASE FreeBSD 14.1-RELEASE-p3 GENERIC amd64<br> <br> in jail I get an error: <br> $ portupgrade -h<br> make: "/usr/ports/Mk/bsd.port.mk" line 1191: UNAME_r (14.1-RELEASE) and<br> OSVERSION (1301000) do not agree on major version number.<br> /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:237:in `join': no implicit<br> conversion of nil into String (TypeError)<br> @index_file = ENV['PORTS_INDEX'] || File.join(indexdir, indexfile || 'INDEX')<br> from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:237:in `index_file'<br> from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:247:in `db_dir='<br> from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:167:in `setup'<br> from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/pkgtools.rb:242:in<br> `init_pkgtools_global'<br> from /usr/local/sbin/portupgrade:531:in `block in main'<br> from /usr/local/lib/ruby/3.2/optparse.rb:1153:in `initialize'<br> from /usr/local/sbin/portupgrade:238:in `new'<br> from /usr/local/sbin/portupgrade:238:in `main'<br> from /usr/local/sbin/portupgrade:2380:in `<main>'<br> <br> What should I do?<br> <br> Franz<br> <br> <br> <br> <br> </main></div><!-- TextPlainViewer --> <hr> </div><!-- MessageRFC822Viewer --> </blockquote><br><br><br></div></body></html> ------=_Part_14330_1045256070.1737283790473--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1885815318.14331.1737283790527>