Re: Get ${OSREL} at install time

From: Piotr Smyrak <ps.ports_at_smyrak.com>
Date: Tue, 18 Apr 2023 10:49:55 UTC
On Tue, 18 Apr 2023 10:10:57 +0100
Nuno Teixeira <eduardo@freebsd.org> wrote:

> Yes, something like it. I will not need src sys/conf/newvers.sh,
> /etc/os-release will do the job.
> 
> Thinking right now in a way to check /etc/os-release version at
> install time.

You also can check output from freebsd-version(1). It's also has the
advantage of letting you inspect values of hosted jails. 

HTH,
-- 
 Piotr Smyrak