Bug 2148589

Summary: minor symlink issue /etc/os-release
Product: Red Hat Enterprise Linux 8 Reporter: Sunny Wu <suwu>
Component: redhat-releaseAssignee: Veronika Doubkova <vdoubkov>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.7CC: lisas, pholica, zveleba
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: redhat-release-8.8-0.5.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2152142 (view as bug list) Environment:
Last Closed: 2023-05-16 08:44:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2152142    
Deadline: 2023-02-21   

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