]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Add legacy flag (-l) to lz4 and update magic number
authorAlexander Tsoy <alexander@tsoy.me>
Wed, 26 Feb 2014 11:50:17 +0000 (15:50 +0400)
committerHarald Hoyer <harald@redhat.com>
Wed, 26 Feb 2014 13:55:54 +0000 (14:55 +0100)
Linux kernel does not support the new default lz4 format.

https://bugs.gentoo.org/show_bug.cgi?id=502102

dracut.sh
lsinitrd.sh

index a56bc13d162877f05bed768bbd103b5f2ba05202..98fc491e222845a1e4181f60061250ca899ce557 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -782,7 +782,7 @@ case $compress in
     xz)    compress="xz --check=crc32 --lzma2=dict=1MiB -T0";;
     gzip)  compress="gzip -9"; command -v pigz > /dev/null 2>&1 && compress="pigz -9";;
     lzo)   compress="lzop -9";;
-    lz4)   compress="lz4 -9";;
+    lz4)   compress="lz4 -l -9";;
 esac
 if [[ $_no_compress_l = "cat" ]]; then
     compress="cat"
index 2c58f844093bcc1e0ea33719a8de1c85244a87d1..8dc9032378b7891ded515b5d49a86e2d4650ea25 100755 (executable)
@@ -172,7 +172,7 @@ case $bin in
     $'\x71\xc7'*|070701)
         CAT="cat --"
         ;;
-    $'\x04\x22'*)
+    $'\x02\x21'*)
         CAT="lz4 -d -c";;
     *)
         CAT="xzcat --";