From 41e3e364abf924acffae8b55b0c20efc6b060fb4 Mon Sep 17 00:00:00 2001 From: Bohdan Khomutskyi Date: Sep 08 2020 14:30:32 +0000 Subject: [PATCH 1/2] Specify the squashfs-only in the lorax_options This will reduce both the BOOT.iso and the DVD medium size This modification relates to the following change proposal: https://fedoraproject.org/wiki/Category:Changes/OptimizeSquashFS The new option should work for Pungi version 4.24 and above Jira: RHELCMP-693 Signed-off-by: Bohdan Khomutskyi --- diff --git a/fedora.conf b/fedora.conf index 03b31a5..6089806 100644 --- a/fedora.conf +++ b/fedora.conf @@ -105,11 +105,13 @@ buildinstall_skip = [ lorax_options = [ ('^.*$', { 'x86_64': { - 'nomacboot': False + 'nomacboot': False, + 'squashfs_only': True }, '*': { 'noupgrade': True, - 'rootfs_size': 3 + 'rootfs_size': 3, + 'squashfs_only': True } }) ] From 20100fa54487ad116d7794430d09081c79de04c2 Mon Sep 17 00:00:00 2001 From: Bohdan Khomutskyi Date: Sep 08 2020 14:37:09 +0000 Subject: [PATCH 2/2] 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 --- 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