Blame SOURCES/0185-lsinitrd.sh-don-t-choke-on-LZO-compressed-images.patch

a56a5e
From 491dbfe072a6ac15da28c581eba2b885cf235051 Mon Sep 17 00:00:00 2001
a56a5e
From: Tobias Geerinckx <tobias.geerinckx@gmail.com>
a56a5e
Date: Tue, 3 Jun 2014 04:59:34 +0200
a56a5e
Subject: [PATCH] lsinitrd.sh: don't choke on LZO-compressed images
a56a5e
a56a5e
lsinitrd (and hence dracut) currently fail to list the contents of any
a56a5e
LZO-compressed image, and merely spit out misleading xzcat errors.
a56a5e
a56a5e
I guess no-one actually uses them.
a56a5e
a56a5e
(cherry picked from commit 773d6a7ded0cc717ecfb7bed6e3f52ceedfb1834)
a56a5e
---
a56a5e
 lsinitrd.sh | 3 +++
a56a5e
 1 file changed, 3 insertions(+)
a56a5e
a56a5e
diff --git a/lsinitrd.sh b/lsinitrd.sh
a56a5e
index 7b12ab9..b36b34e 100755
a56a5e
--- a/lsinitrd.sh
a56a5e
+++ b/lsinitrd.sh
a56a5e
@@ -181,6 +181,9 @@ CAT=$({
a56a5e
             $'\x02\x21'*)
a56a5e
                 echo "lz4 -d -c"
a56a5e
                 ;;
a56a5e
+            $'\x89'LZO$'\0'*)
a56a5e
+                echo "lzop -d -c"
a56a5e
+                ;;
a56a5e
             *)
a56a5e
                 if echo "test"|xz|xzcat --single-stream >/dev/null 2>&1; then
a56a5e
                     echo "xzcat --single-stream --"