Re: Get ${OSREL} at install time
- In reply to: Yuri : "Re: Get ${OSREL} at install time"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Apr 2023 09:28:52 UTC
* Yuri <yuri@aetern.org> [20230418 11:07]: > I was going to suggest something similar with using kern.osreldate and > parsing it according to > https://docs.freebsd.org/en/books/porters-handbook/versions/, e.g. Just a quick hint: /etc/os-release is preferred because it will still work correctly when installing to an alternate root (using pkg -c or pkg -r). -- 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