]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
perf: disable initrd compression when squash module is enabled
authorKairui Song <kasong@redhat.com>
Sun, 31 Jan 2021 17:49:54 +0000 (01:49 +0800)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 9 Mar 2021 13:40:35 +0000 (13:40 +0000)
With squash module, the initramfs is double compressed, which slow down
the build progress and doesn't shrink the size much.

dracut.sh

index 9b67e8734e75c69fc19b66b1fd96f92c98684b78..cb729f0331238782f3f89135678ac28f72ba5c4e 100755 (executable)
--- 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' ***"