Bug 2214391

Summary: broken symlink /usr/lib/firmware/qcom/LENOVO/21BX.xz
Product: Red Hat Enterprise Linux 9 Reporter: Pavel Cahyna <pcahyna>
Component: linux-firmwareAssignee: Jan Stancek <jstancek>
Status: CLOSED ERRATA QA Contact: Laura Trivelloni <ltrivell>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: linux-firmware-20230525-136.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:39:00 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:

Description Pavel Cahyna 2023-06-12 20:14:28 UTC
This bug was initially created as a copy of Bug #2121447

I am copying this bug because: 

The problem has reappeared with a different symlink

Description of problem:

There is a broken symlink /usr/lib/firmware/qcom/LENOVO/21BX.xz in the linux-firmware package. The target /usr/lib/firmware/qcom/sc8280xp/LENOVO/21BX.xz does not exist (but there is a /usr/lib/firmware/qcom/sc8280xp/LENOVO/21BX directory).
This is annoying, because there is a utility (ReaR) that produces a bootable rescue image (including modules and firmware) and checks whether the content of the image is valid. If it encounters a broken symlink, it complains, because it indicates a potential problem and it will be then seen as false alarm that can ultimately obscure a real problem (see bz2021935).

Version-Release number of selected component (if applicable):
20230310-133.el9_2.noarch
How reproducible:
easily in the default install

Steps to Reproduce:
1. file /usr/lib/firmware/qcom/LENOVO/21BX.xz

Actual results:
/usr/lib/firmware/qcom/LENOVO/21BX.xz: broken symbolic link to ../sc8280xp/LENOVO/21BX.xz

Expected results:
symlink is readable

Comment 1 Jan Stancek 2023-06-13 08:41:37 UTC
scratch build for interested parties: https://kojihub.stream.rdu2.redhat.com/koji/taskinfo?taskID=2333761

# ls -la /usr/lib/firmware/qcom/LENOVO/21BX
lrwxrwxrwx. 1 root root 23 Jun 13 04:22 /usr/lib/firmware/qcom/LENOVO/21BX -> ../sc8280xp/LENOVO/21BX

# diff -u -r orig/usr new/usr
Only in new/usr/lib/firmware/qcom/LENOVO: 21BX
Only in orig/usr/lib/firmware/qcom/LENOVO: 21BX.xz

Comment 7 errata-xmlrpc 2023-11-07 08:39:00 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 (Important: linux-firmware security, 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/RHSA-2023:6595