lorax: Fall back to erofs if mksquashfs is not installed#1516
lorax: Fall back to erofs if mksquashfs is not installed#1516brlane-rht wants to merge 2 commits into
Conversation
This switches the requirement on squashfs-tools to a 'Recommends' so that if it is missing lorax will still be installed. It checks that mksquashfs is available when the rootfs-type is squashfs or squashfs-ext4, if it is not it falls back to rootfs and checks to make sure mkfs.erofs is available. The default rootfs-type is still squashfs, and can still be overridden using --rootfs-type=erofs. Resolves: RHEL-68936
Coverage Report for CI Build 25018088474Coverage decreased (-0.2%) to 41.321%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
|
@M4rtinK @yselkowitz what do you think? |
and fall back to erofs if it isn't installed. Related: RHEL-68936
|
erofs is supposed to be the first choice nowadays: https://fedoraproject.org/wiki/Changes/EROFSforLiveMedia So the spec file change makes sense, but I'm not sure about the code. If |
|
That change is for kiwi, not lorax/livemedia-creator. releng still hasn't switched the boot.iso to erofs. So I'm trying to keep things working as-is, but also nicely deal with removing squashfs-tools in ELN. |
This switches the requirement on squashfs-tools to a 'Recommends' so that if it is missing lorax will still be installed.
It checks that mksquashfs is available when the rootfs-type is squashfs or squashfs-ext4, if it is not it falls back to rootfs and checks to make sure mkfs.erofs is available.
The default rootfs-type is still squashfs, and can still be overridden using --rootfs-type=erofs.
Resolves: RHEL-68936