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