On Wed, Jul 02, 2014 at 09:47:26AM -0400, Miloslav Trmač wrote:
----- Original Message -----
> On Wed, Jul 02, 2014 at 10:38:15AM +0200, Karel Zak wrote:
> > It would be really really nice have only *one* file (/etc/os-release)
> > that contains operating system identification data. The mess like
> > /etc/fedora-release and /etc/redhat-release should be deprecated.
>
> Yeah. The tricky thing is providing "sub-release" information when
there's
> just one file. Maybe something like "/etc/os-release.d/" could solve the
> problem....
It really seems to me that it’s way too early to generalize this into a general mechanism
we don’t really need, but would have to keep supporting for years. AFAICT a (probably
Fedora-specific) patch to login(1) that specifically hard-coded detection of a Fedora
product, and added an appropriate message in to contents of /etc/issue, would be a smaller
maintenance burden than any of the generic proposals, would work just as well, and would
give us a full freedom to change our mind about the implementation later.
That's an unnecessary overcomplication too. Just put:
------------- /etc/issue --------------
-- \S{PRETTY_NAME} --
Kernel \r on an \m (\l)
---------------------------------------
and
------------- /etc/os-release ---------
...
PRETTY_NAME="Fedora 21 server (Rawhide)"
...
---------------------------------------
Works as expected.
Zbyszek