]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fine tune mksquashfs options for squash module
authorKairui Song <kasong@redhat.com>
Wed, 25 Sep 2019 05:47:40 +0000 (13:47 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 25 Oct 2019 09:52:05 +0000 (11:52 +0200)
Drop some unneeded metadata in the squash image, and print the error
message if something went wrong.

Signed-off-by: Kairui Song <kasong@redhat.com>
dracut.sh

index 82a310788bb2b0f802f42b6555bbb4b2591030b2..8343ba4e36e2c903a2849576eb839c096e29c859 100755 (executable)
--- 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"