Bug 2034803

Summary: Kernel and initramdisk is stored twice on livecd
Product: Red Hat Enterprise Linux 8 Reporter: Lukas Zapletal <lzap>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-10 22:50:49 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 Lukas Zapletal 2021-12-22 08:19:01 UTC
Hello,

a livecd generated by lorax contains both initramdisk and kernel twice. This probably makes the ISO much more bigger:

# find . ! -empty -type f -exec md5sum {} + | sort | uniq -w32 -dD
6b37ecf48c8efff50ef5417105da9d85  ./images/pxeboot/initrd.img
6b37ecf48c8efff50ef5417105da9d85  ./isolinux/initrd.img
f9c5cc6840ab0093475b3b0699f4e58b  ./images/pxeboot/vmlinuz
f9c5cc6840ab0093475b3b0699f4e58b  ./isolinux/vmlinuz

I think the "pxeboot" directory is included by accident, why would PXE files be present on a livecd when there is an option in lorax to build PXE files instead?

SYSLINUX appears to be using kernel from /images directory however Grub2 is using the one from /images/pxeboot.

Comment 1 Lukas Zapletal 2021-12-22 08:29:16 UTC
Correction, grub2 uses the same kernel/initramdisk but grub2 for EFI uses the pxeimage one. I guess all could use the single copy.

Comment 2 Brian Lane 2022-01-10 22:50:42 UTC
They don't actually use up any more space. They are hardlinked to the same data.

Comment 3 RHEL Program Management 2022-01-10 22:50:49 UTC
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.