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

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