Date: Tue, 18 Apr 2023 11:34:13 +0200 From: Felix Palmen <zirias@FreeBSD.org> To: ports@freebsd.org Subject: Re: Get ${OSREL} at install time Message-ID: <vzkhiyn7tlkmiltx5nlzwfssdn7zwg55sqyfwdmbjkicei3f6s@gsrxpc2g62dz> In-Reply-To: <ff0dc458-76f6-0bc2-8560-0eea00744226@grosbein.net> References: <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com> <ff0dc458-76f6-0bc2-8560-0eea00744226@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--l5c2upv63lmwwvvv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Eugene Grosbein <eugen@grosbein.net> [20230418 16:26]: > 18.04.2023 15:05, Nuno Teixeira wrote: > > Any sugestion or example that permits to get OSREL at install time? >=20 > # osrel=3D$(sysctl -n kern.osrelease) Obtaining the information from the running kernel has the drawback of possibly giving wrong results with pkg -c / pkg -r (installing in an alternative root, e.g. a jail or boot environment). Therefore, parsing /etc/os-release should be preferred. --=20 Felix Palmen <zirias@FreeBSD.org> {private} felix@palmen-it.de -- ports committer (mentee) -- {web} http://palmen-it.de {pgp public key} http://palmen-it.de/pub.txt {pgp fingerprint} 6936 13D5 5BBF 4837 B212 3ACC 54AD E006 9879 F231 --l5c2upv63lmwwvvv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZD5kFV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny MfnaAPsF+rQDjtHd8rcwpzoN6qOoo0bUYVJic4ku39BXgtW99gEA51KrrbZuQDgx BDipBOPxYL2aPTakSColzVq+dRA7TwM= =5g04 -----END PGP SIGNATURE----- --l5c2upv63lmwwvvv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vzkhiyn7tlkmiltx5nlzwfssdn7zwg55sqyfwdmbjkicei3f6s>