Re: Get ${OSREL} at install time

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Tue, 18 Apr 2023 13:38:58 UTC
Ok, I will continue testing.

BTW, I've openned a PR at
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270911

Please test :)

Thanks all

Felix Palmen <zirias@freebsd.org> escreveu no dia terça, 18/04/2023 à(s)
14:13:

> * Nuno Teixeira <eduardo@freebsd.org> [20230418 13:45]:
> > I will do further tests and open an PR so other people try it (I hope).
>
> I would suggest a final improvement: You should probably sanity-check
> what you get from freebsd-version (and in case it isn't sane, stick to
> the compile-time defaults). That's because it's perfectly possible to
> install packages with "pkg -r" into a prefix that doesn't even have base
> installed (so, also no freebsd-version available there).
>
> --
>  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
>


-- 
Nuno Teixeira
FreeBSD Committer (ports)