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

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