From: Kairui Song Date: Wed, 25 Sep 2019 05:47:40 +0000 (+0800) Subject: Fine tune mksquashfs options for squash module X-Git-Tag: 050~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89bc1aa324bcdda3723247218a697171c5a3de6f;p=thirdparty%2Fdracut.git 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 --- diff --git a/dracut.sh b/dracut.sh index 82a310788..8343ba4e3 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1872,7 +1872,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"