fedora-release-$PRODUCT, /etc/issue, /etc/os-release, Per-Product Configs and more!
Karel Zak
kzak at redhat.com
Wed Jul 2 08:38:15 UTC 2014
On Mon, Jun 30, 2014 at 02:59:20PM -0400, Stephen Gallagher wrote:
> 2) The fedora-release-$PRODUCT package (and possibly %post or systemd
> snippets therein) will be responsible for the creation and maintenance
> of /etc/issue, /etc/os-release and /etc/fedora-release-product (note:
> there is no $ there. That's the literal name. This file will be
> equivalent to /etc/fedora-release except that it will include the
> Product name.
Note that agetty(8) allows to keep /etc/issue distribution
independent and it reads all necessary information from
/etc/os-release to generate the final pre-login message. All you need
is to create /etc/issue with \S sequences, for example:
\S{PRETTY_NAME}
\S{HOME_URL}
Kernel \r on an \m (\l)
.. so /etc/issue does not have to be maintained within packages like
fedora-release-$PRODUCT or so.
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.
Karel
--
Karel Zak <kzak at redhat.com>
http://karelzak.blogspot.com
More information about the devel
mailing list