On Thu, Aug 4, 2016 at 3:55 PM, Ludwig Nussel
Oliver Kurz schrieb:
On Tuesday 02 August 2016 13:19:14 Ludwig Nussel wrote:
Tumbleweed and Leap currently use /etc/os-release inconsistently:
[...]
There are of course multiple ways to change that. Here's my proposal:
ID="opensuse" NAME="Tumbleweed" VERSION="20160724" VERSION_ID="20160724" PRETTY_NAME="openSUSE Tumbleweed"
and
ID="opensuse" NAME="Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1"
According to the specification¹ VERSION and VERSION_ID may even be omitted for rolling distros but IMO it's still useful to find out how old a TW installation is.
Any objections?
From the spec I understand that ID and NAME should describe the same but ID in lowercase and more "machine readable", and NAME being more descriptive.
My proposal therefore:
ID="opensuse" NAME="openSUSE Tumbleweed" VERSION="20160724" VERSION_ID="20160724" PRETTY_NAME="openSUSE Tumbleweed (20160724)"
and
ID="opensuse" NAME="openSUSE Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1"
So mainly a question of having openSUSE in the name or not. Does anyone maintain a package that reads os-release that could give us a hint whether we should put openSUSE there or not?
GRUB is using "$NAME $VERSION" as default for menu titles. I believe there was even bug report regarding this. With your proposal we get "openSUSE Tumebleweed 20160724" which sounds wrong as menu is changed much less frequently than snapshot. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org