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

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