Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732142 - sys-apps/baselayout should install /usr/lib/os-release with an /etc/os-release symlink
Summary: sys-apps/baselayout should install /usr/lib/os-release with an /etc/os-releas...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-10 21:36 UTC by Matt Turner
Modified: 2020-11-14 17:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2020-07-10 21:36:04 UTC
I believe historically /etc/os-release has been a real file, but other distros have switched to shipping /usr/lib/os-release with a symlink from /etc/os-release.

This is how Arch, Fedora, and RHEL work at least. E.g., the change was made for RHEL in https://bugzilla.redhat.com/show_bug.cgi?id=1766754

These files are described in man 5 os-release (https://www.freedesktop.org/software/systemd/man/os-release.html) which says

> /usr/lib/os-release is the recommended place to store OS release information as part of vendor trees. /etc/os-release should be a relative symlink to /usr/lib/os-release, to provide compatibility with applications only looking at /etc.
Comment 1 Larry the Git Cow gentoo-dev 2020-11-14 17:07:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=892dfe550af8c3d7c033b68408275582edf6504e

commit 892dfe550af8c3d7c033b68408275582edf6504e
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2020-11-14 17:01:45 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2020-11-14 17:07:24 +0000

    sys-apps/baselayout: 2.7-r1 bump
    
    Closes: https://bugs.gentoo.org/732142
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 sys-apps/baselayout/baselayout-2.7-r1.ebuild | 317 +++++++++++++++++++++++++++
 1 file changed, 317 insertions(+)