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