From 20100fa54487ad116d7794430d09081c79de04c2 Mon Sep 17 00:00:00 2001 From: Bohdan Khomutskyi Date: Thu, 13 Aug 2020 17:11:20 +0200 Subject: [PATCH] Specify the configuration_file in lorax_options Usage of this option should reduce both the BOOT.iso and the DVD medium size. This is because the LiveOS/squashfs.img will be compressed better by using a bigger dictionary size. 1MiB is the maximum allowed for SquashFS currently. This modification relates to the following change proposal: https://fedoraproject.org/wiki/Category:Changes/OptimizeSquashFS The result of it should be similar as in the following example DVD: https://khomutsky.com/fedora-dvd/Fedora-Workstation-x86_64-31-1.9.bkhomuts-squashfs-ext4-xz-1M.iso I have tested the above mentioned DVD myself to confirm that the installation succeeds. You can see other test results in the change proposal. Note, that this is only one part of the change proposal. A second part is documented at this URI: https://pagure.io/pungi-fedora/pull-request/871 The new option requires Pungi 4.2.4 that will be released soon. Jira: RHELCMP-693 Signed-off-by: Bohdan Khomutskyi --- fedora.conf | 6 ++++-- lorax.conf | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 lorax.conf diff --git a/fedora.conf b/fedora.conf index 6089806..6df31a5 100644 --- a/fedora.conf +++ b/fedora.conf @@ -106,12 +106,14 @@ lorax_options = [ ('^.*$', { 'x86_64': { 'nomacboot': False, - 'squashfs_only': True + 'squashfs_only': True, + 'configuration_file': 'lorax.conf' }, '*': { 'noupgrade': True, 'rootfs_size': 3, - 'squashfs_only': True + 'squashfs_only': True, + 'configuration_file': 'lorax.conf' } }) ] diff --git a/lorax.conf b/lorax.conf new file mode 100644 index 0000000..8cab841 --- /dev/null +++ b/lorax.conf @@ -0,0 +1,3 @@ +[compression] +bcj = no +args = -b 1M -Xdict-size 1M -no-recovery