Skip to content

Commit

Permalink
Passing xz to xz -9e with dict=64Mib both linux bzImage and initrd.
Browse files Browse the repository at this point in the history
Test for linuxboot#590

(recommended as default for -9e per linuxboot#1184)
  • Loading branch information
tlaurion committed Aug 17, 2022
1 parent d120023 commit 6aea478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ $(build)/$(initrd_dir)/initrd.cpio.xz: $(initrd-y)
$^ \
| xz \
--check=crc32 \
--lzma2=dict=1MiB \
--lzma2=dict=64MiB \
-9e \
| dd bs=512 conv=sync status=none > "$@.tmp" \
)
Expand Down
2 changes: 1 addition & 1 deletion patches/linux-4.14.62/0011-kernel-xz-compression-max.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
esac

-exec xz --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB
+exec xz -9e --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=1MiB
+exec xz -9 --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=64MiB

0 comments on commit 6aea478

Please sign in to comment.