17094c
From b36c1ff083499c2cf1d1dbb7fe1663a2dd0683cc Mon Sep 17 00:00:00 2001
17094c
From: Kairui Song <kasong@redhat.com>
17094c
Date: Wed, 25 Sep 2019 13:47:40 +0800
17094c
Subject: [PATCH] Fine tune mksquashfs options for squash module
17094c
17094c
Drop some unneeded metadata in the squash image, and print the error
17094c
message if something went wrong.
17094c
17094c
Signed-off-by: Kairui Song <kasong@redhat.com>
17094c
(cherry picked from commit 89bc1aa324bcdda3723247218a697171c5a3de6f)
17094c
17094c
Resolves: #1776659
17094c
---
17094c
 dracut.sh | 2 +-
17094c
 1 file changed, 1 insertion(+), 1 deletion(-)
17094c
17094c
diff --git a/dracut.sh b/dracut.sh
17094c
index 310646e3..487add57 100755
17094c
--- a/dracut.sh
17094c
+++ b/dracut.sh
17094c
@@ -1857,7 +1857,7 @@ fi
17094c
 
17094c
 if dracut_module_included "squash"; then
17094c
     dinfo "*** Squashing the files inside the initramfs ***"
17094c
-    mksquashfs $squash_dir $squash_img -comp xz -b 64K -Xdict-size 100% &> /dev/null
17094c
+    mksquashfs $squash_dir $squash_img -no-xattrs -no-exports -noappend -always-use-fragments -comp xz -Xdict-size 100% -no-progress 1> /dev/null
17094c
 
17094c
     if [[ $? != 0 ]]; then
17094c
         dfatal "dracut: Failed making squash image"
17094c