Bug 1971840

Summary: Please replace genisoimage with xorriso
Product: Red Hat Enterprise Linux 9 Reporter: Jiri Kucera <jkucera>
Component: edk2Assignee: Laszlo Ersek <lersek>
Status: CLOSED CURRENTRELEASE QA Contact: Xueqiang Wei <xuwei>
Severity: high Docs Contact:
Priority: high    
Version: 9.0CC: apevec, bdobreli, berrange, coli, jinzhao, juzhang, kkiwi, kraxel, lersek, mrezanin, pbonzini, philmd, smooney, virt-maint
Target Milestone: betaKeywords: RFE, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: edk2-20210527gite1999b264f1f-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:50:14 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: 1938254    
Bug Blocks: 2002949    

Description Jiri Kucera 2021-06-14 20:16:15 UTC
cdrkit is going to be removed from RHEL 9 since it is not actively developed for a long time. xorriso from libisoburn is genisoimage's alternative.

Fedora PR: https://src.fedoraproject.org/rpms/edk2

Comment 1 Klaus Heinrich Kiwi 2021-06-15 13:01:34 UTC
Laszlo,

 this sounds important (and urgent, since it's RHEL9 compose-related?). Should this be assigned to you? Let me know otherwise.

 -Klaus

Comment 2 Laszlo Ersek 2021-06-23 09:22:06 UTC
Hi Klaus,

it's best to update the RHEL9 spec file after the RHEL-9 rebase of edk2 (= rebuild of RHEL-8.5 SRPM).

Thanks
Laszlo

Comment 3 Laszlo Ersek 2021-06-23 09:25:26 UTC
(In reply to Jiri Kucera from comment #0)
> cdrkit is going to be removed from RHEL 9 since it is not actively developed
> for a long time. xorriso from libisoburn is genisoimage's alternative.
> 
> Fedora PR: https://src.fedoraproject.org/rpms/edk2

> - genisoimage -input-charset ASCII -J -rational-rock \
> -     -efi-boot "${vfat##*/}" -no-emul-boot -o "$iso" -- "$vfat"
> + mkisofs -input-charset ASCII -J -rational-rock \
> +     -e "${vfat##*/}" -no-emul-boot -o "$iso" "$vfat"

I prefer using verbose option names (command lines in general) in spec files, so in RHEL9 we should replace "-efi-boot" with "--efi-boot", not "-e". Furthermore, removing the "--" option/operand delimiter seems unwarranted, we should keep it in RHEL9, even if only for readability's sake.

Thanks.

Comment 4 Laszlo Ersek 2021-06-28 16:52:30 UTC
Bug 1938254 is now in MODIFIED state, so work can commence on this downstream-only update.

Comment 5 Laszlo Ersek 2021-06-30 10:19:47 UTC
(In reply to Laszlo Ersek from comment #3)
> (In reply to Jiri Kucera from comment #0)
> > cdrkit is going to be removed from RHEL 9 since it is not actively developed
> > for a long time. xorriso from libisoburn is genisoimage's alternative.
> > 
> > Fedora PR: https://src.fedoraproject.org/rpms/edk2
> 
> > - genisoimage -input-charset ASCII -J -rational-rock \
> > -     -efi-boot "${vfat##*/}" -no-emul-boot -o "$iso" -- "$vfat"
> > + mkisofs -input-charset ASCII -J -rational-rock \
> > +     -e "${vfat##*/}" -no-emul-boot -o "$iso" "$vfat"
> 
> I prefer using verbose option names (command lines in general) in spec
> files, so in RHEL9 we should replace "-efi-boot" with "--efi-boot", not
> "-e". Furthermore, removing the "--" option/operand delimiter seems
> unwarranted, we should keep it in RHEL9, even if only for readability's sake.

My preferences do not work, unfortunately, due to various bugs in the "mkisofs" wrapper of "xorriso". It's not a drop-in replacement. The Fedora changes are justified, but they were not explained.

Comment 6 Laszlo Ersek 2021-06-30 12:49:49 UTC
Regression testing (with any UefiShell.iso-related tasks from the test plan) should suffice here -- in fact the package build process itself only completes if UefiShell.iso is built correctly and behaves correctly.

Comment 10 Yanan Fu 2021-07-05 01:58:03 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 11 Xueqiang Wei 2021-07-13 20:19:23 UTC
Tested edk2 test loop(secure boot, uefi shell commands, https installation, pxe installation and so on), no new bug found. So set status to VERIFIED.


Versions:
kernel-5.13.0-0.rc7.51.el9.x86_64
qemu-kvm-6.0.0-7.el9
edk2-20210527gite1999b264f1f-2.el9