RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1696798 - ISO files identified differently on RHEL-7 and RHEL-8
Summary: ISO files identified differently on RHEL-7 and RHEL-8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: file
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Vincent Mihalkovič
QA Contact: Karel Volný
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-05 16:45 UTC by Jan Stodola
Modified: 2020-11-04 01:59 UTC (History)
3 users (show)

Fixed In Version: file-5.33-14.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:57:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4531 0 None None None 2020-11-04 01:57:43 UTC

Description Jan Stodola 2019-04-05 16:45:32 UTC
Description of problem:
The file command in RHEL-7 and RHEL-8 prints different output for the same ISO files, compare:

# RHEL-8:
$ rpm -q file
file-5.33-8.el8.x86_64
$ file Fedora-Server-netinst-*
Fedora-Server-netinst-aarch64-29-1.2.iso: ISO 9660 CD-ROM filesystem data 'Fedora-S-dvd-aarch64-29' (bootable)
Fedora-Server-netinst-x86_64-29-1.2.iso:  DOS/MBR boot sector; partition 2 : ID=0xef, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 196, 19960 sectors
$

# RHEL-7:
$ rpm -q file
file-5.11-35.el7.x86_64
$ file Fedora-Server-netinst-*
Fedora-Server-netinst-aarch64-29-1.2.iso: # ISO 9660 CD-ROM filesystem data 'Fedora-S-dvd-aarch64-29' (bootable)
Fedora-Server-netinst-x86_64-29-1.2.iso:  # ISO 9660 CD-ROM filesystem data 'Fedora-S-dvd-x86_64-29' (bootable)
$

Note the missing "# " in case of the aarch64 image and a completely different output for the x86_64 image.


Version-Release number of selected component (if applicable):
file-5.33-8.el8

How reproducible:
always

Steps to Reproduce:
1. wget https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/x86_64/iso/Fedora-Server-netinst-x86_64-29-1.2.iso
2. wget https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/aarch64/iso/Fedora-Server-netinst-aarch64-29-1.2.iso
3. file Fedora-Server-netinst-*

Actual results:
Fedora-Server-netinst-aarch64-29-1.2.iso: ISO 9660 CD-ROM filesystem data 'Fedora-S-dvd-aarch64-29' (bootable)
Fedora-Server-netinst-x86_64-29-1.2.iso:  DOS/MBR boot sector; partition 2 : ID=0xef, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 196, 19960 sectors

Expected results (assuming that RHEL-7 is correct):
Fedora-Server-netinst-aarch64-29-1.2.iso: # ISO 9660 CD-ROM filesystem data 'Fedora-S-dvd-aarch64-29' (bootable)
Fedora-Server-netinst-x86_64-29-1.2.iso:  # ISO 9660 CD-ROM filesystem data 'Fedora-S-dvd-x86_64-29' (bootable)

Comment 1 Kamil Dudka 2019-04-08 11:11:36 UTC
This seems to be broken by the following upstream commit:

https://github.com/file/file/commit/FILE5_13-20-g3989f2e0

Comment 2 Vincent Mihalkovič 2020-05-07 08:59:54 UTC
Hi Jan, 

I look at this bug and find solution in which output looks like this:
../Fedora-Server-netinst-aarch64-29-1.2.iso: ISO 9660 CD-ROM filesystem data 'Fedora-S-dvd-aarch64-29' (bootable)
../Fedora-Server-netinst-x86_64-29-1.2.iso:  ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'Fedora-S-dvd-x86_64-29' (bootable)

Would this fit your needs?
If not, I would like to ask you, what are your motivations for removing string (DOS/MBR boot sector - this string was added there for reason) and adding "#" character back?

Comment 3 Jan Stodola 2020-05-07 13:34:20 UTC
Hi Vincent,
the solution you proposed is perfect, thanks!

Comment 4 Vincent Mihalkovič 2020-05-19 15:19:02 UTC
Bug fixed in following upstream commit: https://github.com/file/file/commit/18944cd4e7c60273917b8a14720b236430d5470b.

Comment 12 errata-xmlrpc 2020-11-04 01:57:38 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 (file 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-2020:4531


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