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

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