From: Kairui Song Date: Sun, 31 Jan 2021 17:49:54 +0000 (+0800) Subject: perf: disable initrd compression when squash module is enabled X-Git-Tag: 054~325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c0bc0b2fd167da42035020dae49af94844f053c;p=thirdparty%2Fdracut.git 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. --- diff --git a/dracut.sh b/dracut.sh index 9b67e8734..cb729f033 100755 --- a/dracut.sh +++ b/dracut.sh @@ -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' ***"