|
|
28ab1c |
From 878384403378526535a737acfdbf4154f7af5f50 Mon Sep 17 00:00:00 2001
|
|
|
28ab1c |
From: Kairui Song <kasong@redhat.com>
|
|
|
28ab1c |
Date: Mon, 1 Feb 2021 01:49:54 +0800
|
|
|
28ab1c |
Subject: [PATCH] perf: disable initrd compression when squash module is
|
|
|
28ab1c |
enabled
|
|
|
28ab1c |
|
|
|
28ab1c |
With squash module, the initramfs is double compressed, which slow down
|
|
|
28ab1c |
the build progress and doesn't shrink the size much.
|
|
|
28ab1c |
|
|
|
28ab1c |
(cherry picked from commit 7c0bc0b2fd167da42035020dae49af94844f053c)
|
|
|
28ab1c |
|
|
|
28ab1c |
Resolves: #1959336
|
|
|
28ab1c |
---
|
|
|
28ab1c |
dracut.sh | 3 +++
|
|
|
28ab1c |
1 file changed, 3 insertions(+)
|
|
|
28ab1c |
|
|
|
28ab1c |
diff --git a/dracut.sh b/dracut.sh
|
|
|
28ab1c |
index d9a66c5a..bf79568c 100755
|
|
|
28ab1c |
--- a/dracut.sh
|
|
|
28ab1c |
+++ b/dracut.sh
|
|
|
28ab1c |
@@ -1801,6 +1801,9 @@ if dracut_module_included "squash"; then
|
|
|
28ab1c |
|
|
|
28ab1c |
rm -rf "$squash_dir"
|
|
|
28ab1c |
dinfo "*** Squashing the files inside the initramfs done ***"
|
|
|
28ab1c |
+
|
|
|
28ab1c |
+ # Skip initramfs compress
|
|
|
28ab1c |
+ compress="cat"
|
|
|
28ab1c |
fi
|
|
|
28ab1c |
|
|
|
28ab1c |
dinfo "*** Creating image file '$outfile' ***"
|
|
|
28ab1c |
|