components/liveinstall: Switch to EROFS for live media

This switches from SquashFS to EROFS using LZMA compression
with a 1M chunksize and fragement dedpulication for inodes enabled.

This attempts to match the defaults for SquashFS in kiwi and provides
a good balance for image compression and creation time.

Note that "-Ededupe" is not used because it is not multi-threaded and
is currently extremely slow.
This commit is contained in:
Neal Gompa
2025-02-19 12:19:53 -05:00
parent dbed27c61e
commit 3d2b7b0dc4
+8 -4
View File
@@ -8,8 +8,9 @@
<preferences profiles="LiveInstall" arch="x86_64"> <preferences profiles="LiveInstall" arch="x86_64">
<type image="iso" <type image="iso"
publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux" publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux"
primary="true" flags="dmsquash" filesystem="squashfs" squashfscompression="xz" mediacheck="true" primary="true" flags="dmsquash" filesystem="erofs" erofscompression="lzma,level=6" mediacheck="true"
firmware="uefi" efiparttable="gpt" efifatimagesize="30" kernelcmdline="quiet rhgb" firmware="uefi" efiparttable="gpt" efifatimagesize="30" kernelcmdline="quiet rhgb"
fscreateoptions="-Eall-fragments,fragdedupe=inode -C 1048576"
> >
<bootloader name="grub2" grub_template="grub-x86.cfg.iso-template" console="console" timeout="10"/> <bootloader name="grub2" grub_template="grub-x86.cfg.iso-template" console="console" timeout="10"/>
</type> </type>
@@ -17,8 +18,9 @@
<preferences profiles="LiveInstall" arch="aarch64"> <preferences profiles="LiveInstall" arch="aarch64">
<type image="iso" <type image="iso"
publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux" publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux"
primary="true" flags="dmsquash" filesystem="squashfs" squashfscompression="xz" mediacheck="true" primary="true" flags="dmsquash" filesystem="erofs" erofscompression="lzma,level=6" mediacheck="true"
firmware="uefi" efiparttable="gpt" efifatimagesize="30" kernelcmdline="quiet rhgb" firmware="uefi" efiparttable="gpt" efifatimagesize="30" kernelcmdline="quiet rhgb"
fscreateoptions="-Eall-fragments,fragdedupe=inode -C 1048576"
> >
<bootloader name="grub2" grub_template="grub-arm.cfg.iso-template" console="console" timeout="10"/> <bootloader name="grub2" grub_template="grub-arm.cfg.iso-template" console="console" timeout="10"/>
</type> </type>
@@ -26,8 +28,9 @@
<preferences profiles="LiveInstall" arch="riscv64"> <preferences profiles="LiveInstall" arch="riscv64">
<type image="iso" <type image="iso"
publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux" publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux"
primary="true" flags="dmsquash" filesystem="squashfs" squashfscompression="xz" mediacheck="true" primary="true" flags="dmsquash" filesystem="erofs" erofscompression="lzma,level=6" mediacheck="true"
firmware="uefi" efiparttable="gpt" efifatimagesize="30" kernelcmdline="quiet rhgb" firmware="uefi" efiparttable="gpt" efifatimagesize="30" kernelcmdline="quiet rhgb"
fscreateoptions="-Eall-fragments,fragdedupe=inode -C 1048576"
> >
<bootloader name="grub2" grub_template="grub-riscv64.cfg.iso-template" console="console" timeout="10"/> <bootloader name="grub2" grub_template="grub-riscv64.cfg.iso-template" console="console" timeout="10"/>
</type> </type>
@@ -35,8 +38,9 @@
<preferences profiles="LiveInstall" arch="ppc64le"> <preferences profiles="LiveInstall" arch="ppc64le">
<type image="iso" <type image="iso"
publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux" publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux"
primary="true" flags="dmsquash" filesystem="squashfs" squashfscompression="xz" mediacheck="true" primary="true" flags="dmsquash" filesystem="erofs" erofscompression="lzma,level=6" mediacheck="true"
firmware="ofw" kernelcmdline="quiet rhgb" firmware="ofw" kernelcmdline="quiet rhgb"
fscreateoptions="-Eall-fragments,fragdedupe=inode -C 1048576"
> >
<bootloader name="grub2" grub_template="grub-ppc.cfg.iso-template" console="console" timeout="10"/> <bootloader name="grub2" grub_template="grub-ppc.cfg.iso-template" console="console" timeout="10"/>
</type> </type>