You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
From 07c4a2fce5ddc0b6266526911586f1bd36f5700f Mon Sep 17 00:00:00 2001 |
|
From: Alexander Tsoy <alexander@tsoy.me> |
|
Date: Wed, 26 Feb 2014 15:50:17 +0400 |
|
Subject: [PATCH] Add legacy flag (-l) to lz4 and update magic number |
|
|
|
Linux kernel does not support the new default lz4 format. |
|
|
|
https://bugs.gentoo.org/show_bug.cgi?id=502102 |
|
--- |
|
dracut.sh | 2 +- |
|
lsinitrd.sh | 2 +- |
|
2 files changed, 2 insertions(+), 2 deletions(-) |
|
|
|
diff --git a/dracut.sh b/dracut.sh |
|
index 95f18dbf..a5fcf389 100755 |
|
--- a/dracut.sh |
|
+++ b/dracut.sh |
|
@@ -720,7 +720,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" |
|
diff --git a/lsinitrd.sh b/lsinitrd.sh |
|
index 2fbebd8e..7b12ab96 100755 |
|
--- a/lsinitrd.sh |
|
+++ b/lsinitrd.sh |
|
@@ -178,7 +178,7 @@ CAT=$({ |
|
$'\x71\xc7'*|070701) |
|
echo "cat --" |
|
;; |
|
- $'\x04\x22'*) |
|
+ $'\x02\x21'*) |
|
echo "lz4 -d -c" |
|
;; |
|
*)
|
|
|