Bug 2028104

Summary: mkksiso doesn't work with s390x and aarch64 RHEL isos
Product: Red Hat Enterprise Linux 9 Reporter: Zdenek Veleba <zveleba>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: bcl, jstodola, pzatko, release-test-team-automation
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lorax-34.9.10-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2028089 Environment:
Last Closed: 2022-05-17 12:34:04 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: 2028089    
Bug Blocks: 2027125    

Description Zdenek Veleba 2021-12-01 13:34:18 UTC
Same issue in lorax-34.9.9-1.el9

+++ This bug was initially created as a clone of Bug #2028089 +++

Description of problem:
mkksiso requires directory /isolinux to be present on the image,
but this isn't the case for aarch64 and s390x RHEL isos.

Version-Release number of selected component (if applicable):
lorax-28.14.63-1.el8

How reproducible:
Always

Steps to Reproduce:
1. Get RHEL iso for s390x and aarch64
2. Prepare some kickstart
3. Run mkksiso ks.cfg /var/tmp/images/cdimage.iso /var/tmp/images/cdimage_ks.iso

Actual results:
INFO:Running... mount -o loop /var/tmp/images/cdimage.iso /tmp/lorax.imgutils.gmeg3iy2
INFO:mount: /tmp/lorax.imgutils.gmeg3iy2: WARNING: device write-protected, mounted read-only.
INFO:Running... umount /tmp/lorax.imgutils.gmeg3iy2
Traceback (most recent call last):
  File "/usr/sbin/mkksiso", line 618, in <module>
    main()
  File "/usr/sbin/mkksiso", line 612, in main
    args.add_paths, args.cmdline, args.volid)
  File "/usr/sbin/mkksiso", line 395, in __init__
    self.iso = IsoMountpoint(self.input_iso)
  File "/usr/lib/python3.6/site-packages/pylorax/mount.py", line 79, in __init__
    " to search under: {0}".format(kernel_list))
Exception: Missing kernel and initrd file in iso, failed to search under: [('/isolinux/vmlinuz', '/isolinux/initrd.img'), ('/ppc/ppc64/vmlinuz', '/ppc/ppc64/initrd.img')]

Expected results:
Iso with ks is created

Comment 1 Brian Lane 2021-12-07 23:26:59 UTC
I'd like to just pull in all the recent changes to mkksiso that I'm also making upstream and in RHEL8. No reason to leave any of the other stuff out.

https://github.com/weldr/lorax/pull/1199

Comment 8 errata-xmlrpc 2022-05-17 12:34:04 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 (new packages: lorax), 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-2022:2345