perf: disable initrd compression when squash module is enabled

With squash module, the initramfs is double compressed, which slow down
the build progress and doesn't shrink the size much.
master
Kairui Song 2021-02-01 01:49:54 +08:00 committed by Jóhann B. Guðmundsson
parent 5d05ffbd87
commit 7c0bc0b2fd
1 changed files with 3 additions and 0 deletions

View File

@ -2053,6 +2053,9 @@ if dracut_module_included "squash"; then

rm -rf "$squash_dir"
dinfo "*** Squashing the files inside the initramfs done ***"

# Skip initramfs compress
compress="cat"
fi

dinfo "*** Creating image file '$outfile' ***"