Bug 2148589 - minor symlink issue /etc/os-release
Summary: minor symlink issue /etc/os-release
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2023-02-21
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: redhat-release
Version: 8.7
Hardware: All
OS: All
unspecified
low
Target Milestone: rc
: ---
Assignee: Veronika Doubkova
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 2152142
TreeView+ depends on / blocked
 
Reported: 2022-11-26 05:28 UTC by Sunny Wu
Modified: 2023-05-16 10:15 UTC (History)
3 users (show)

Fixed In Version: redhat-release-8.8-0.5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2152142 (view as bug list)
Environment:
Last Closed: 2023-05-16 08:44:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELBLD-11600 0 None None None 2022-11-26 05:31:21 UTC
Red Hat Issue Tracker RHELPLAN-140539 0 None None None 2022-11-26 05:31:24 UTC
Red Hat Issue Tracker RTT-5062 0 None None None 2022-12-09 10:44:10 UTC
Red Hat Issue Tracker RTT-5063 0 None None None 2022-12-09 10:44:14 UTC
Red Hat Product Errata RHBA-2023:2946 0 None None None 2023-05-16 08:44:42 UTC

Description Sunny Wu 2022-11-26 05:28:24 UTC
Description of problem:

/etc/os-release became a symlink since https://bugzilla.redhat.com/show_bug.cgi?id=1766754

An issue reported in the original Bugzilla ticket has not been fixed:

https://bugzilla.redhat.com/show_bug.cgi?id=1766754#c16

> # ls -l /usr/lib/os-release /etc/os-release 
> lrwxrwxrwx. 1 root root  22 Mar  9 15:03 /etc/os-release -> ..//usr/lib/os-release
> -rw-r--r--. 1 root root 513 Mar  9 15:03 /usr/lib/os-release
> 
> Is it deliberate that there are // at the beginning of the referenced path in the symlink?
>
> No.  At the same time, it doesn't functionally change anything.  We can fix it in 8.3.0.

Version-Release number of selected component (if applicable):
$ rpm -qa | grep redhat-release
redhat-release-8.6-0.1.el8.x86_64

Comment 1 Lisa S 2022-11-29 14:41:22 UTC
Let's fix this in RHEL 8.8 and confirm it is already fixed in RHEL 9.

Comment 3 Sunny Wu 2022-12-02 14:45:12 UTC
The same issue is found in RHEL9.1

$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.1 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.1"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.1 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/9/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.1
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.1"

$ ls -al /etc/os-release 
lrwxrwxrwx. 1 root root 22 Sep 28 04:07 /etc/os-release -> ..//usr/lib/os-release

$ rpm -qa | grep redhat-release
redhat-release-9.1-1.9.el9.x86_64

Comment 4 Veronika Doubkova 2022-12-09 12:59:20 UTC
Build created: redhat-release-8.8-0.5.el8

Comment 9 errata-xmlrpc 2023-05-16 08:44:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (redhat-release bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2946


Note You need to log in before you can comment on or make changes to this bug.