Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 12:49:55 +0200
From:      Piotr Smyrak <ps.ports@smyrak.com>
To:        Nuno Teixeira <eduardo@freebsd.org>
Cc:        ports@freebsd.org
Subject:   Re: Get ${OSREL} at install time
Message-ID:  <20230418124955.03cff11e@daleth.home>
In-Reply-To: <CAFDf7ULeUKBthnLWM_6wgK%2BVSTpQT2XvNpCOVL%2BAy6fQwKqeLw@mail.gmail.com>
References:  <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com> <20230418105544.4e4d5a44@daleth.home> <CAFDf7ULeUKBthnLWM_6wgK%2BVSTpQT2XvNpCOVL%2BAy6fQwKqeLw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230418124955.03cff11e>