From 5e567740a9f5dbfefd3a5587434171876aceac9f Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Dec 21 2020 08:15:21 +0000 Subject: Fine tune mksquashfs options for squash module Drop some unneeded metadata in the squash image, and print the error message if something went wrong. Signed-off-by: Kairui Song (cherry picked from commit 89bc1aa324bcdda3723247218a697171c5a3de6f) Resolves: #1776659 patch_name: 0079.patch present_in_specfile: true location_in_specfile: 79 squash_commits: true --- diff --git a/dracut.sh b/dracut.sh index 310646e..487add5 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1857,7 +1857,7 @@ fi if dracut_module_included "squash"; then dinfo "*** Squashing the files inside the initramfs ***" - mksquashfs $squash_dir $squash_img -comp xz -b 64K -Xdict-size 100% &> /dev/null + mksquashfs $squash_dir $squash_img -no-xattrs -no-exports -noappend -always-use-fragments -comp xz -Xdict-size 100% -no-progress 1> /dev/null if [[ $? != 0 ]]; then dfatal "dracut: Failed making squash image"