From 7c0bc0b2fd167da42035020dae49af94844f053c Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Mon, 1 Feb 2021 01:49:54 +0800 Subject: [PATCH] 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. --- dracut.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dracut.sh b/dracut.sh index 9b67e8734e..cb729f0331 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' ***"