]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lsinitrd.sh: don't choke on LZO-compressed images
authorTobias Geerinckx <tobias.geerinckx@gmail.com>
Tue, 3 Jun 2014 02:59:34 +0000 (04:59 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 10:01:08 +0000 (12:01 +0200)
lsinitrd (and hence dracut) currently fail to list the contents of any
LZO-compressed image, and merely spit out misleading xzcat errors.

I guess no-one actually uses them.

(cherry picked from commit 773d6a7ded0cc717ecfb7bed6e3f52ceedfb1834)

lsinitrd.sh

index 7b12ab9694833268c5b0c743bfd911bfd1ca4687..b36b34e2665153f3d65c46edb6759ee169b58b75 100755 (executable)
@@ -181,6 +181,9 @@ CAT=$({
             $'\x02\x21'*)
                 echo "lz4 -d -c"
                 ;;
+            $'\x89'LZO$'\0'*)
+                echo "lzop -d -c"
+                ;;
             *)
                 if echo "test"|xz|xzcat --single-stream >/dev/null 2>&1; then
                     echo "xzcat --single-stream --"