Blame SOURCES/0157-Add-legacy-flag-l-to-lz4-and-update-magic-number.patch

18971c
From 07c4a2fce5ddc0b6266526911586f1bd36f5700f Mon Sep 17 00:00:00 2001
18971c
From: Alexander Tsoy <alexander@tsoy.me>
18971c
Date: Wed, 26 Feb 2014 15:50:17 +0400
18971c
Subject: [PATCH] Add legacy flag (-l) to lz4 and update magic number
18971c
18971c
Linux kernel does not support the new default lz4 format.
18971c
18971c
https://bugs.gentoo.org/show_bug.cgi?id=502102
18971c
---
18971c
 dracut.sh   | 2 +-
18971c
 lsinitrd.sh | 2 +-
18971c
 2 files changed, 2 insertions(+), 2 deletions(-)
18971c
18971c
diff --git a/dracut.sh b/dracut.sh
18971c
index 95f18dbf..a5fcf389 100755
18971c
--- a/dracut.sh
18971c
+++ b/dracut.sh
18971c
@@ -720,7 +720,7 @@ case $compress in
18971c
     xz)    compress="xz --check=crc32 --lzma2=dict=1MiB -T0";;
18971c
     gzip)  compress="gzip -9"; command -v pigz > /dev/null 2>&1 && compress="pigz -9";;
18971c
     lzo)   compress="lzop -9";;
18971c
-    lz4)   compress="lz4 -9";;
18971c
+    lz4)   compress="lz4 -l -9";;
18971c
 esac
18971c
 if [[ $_no_compress_l = "cat" ]]; then
18971c
     compress="cat"
18971c
diff --git a/lsinitrd.sh b/lsinitrd.sh
18971c
index 2fbebd8e..7b12ab96 100755
18971c
--- a/lsinitrd.sh
18971c
+++ b/lsinitrd.sh
18971c
@@ -178,7 +178,7 @@ CAT=$({
18971c
             $'\x71\xc7'*|070701)
18971c
                 echo "cat --"
18971c
                 ;;
18971c
-            $'\x04\x22'*)
18971c
+            $'\x02\x21'*)
18971c
                 echo "lz4 -d -c"
18971c
                 ;;
18971c
             *)