]> 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>
Fri, 20 Jun 2014 12:34:29 +0000 (14:34 +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.

lsinitrd.sh

index a697bc2b7570152d14e2696afd9fc63ee6d73dbd..4ba8752c4b27635f0e2cb3641f1e49e60c6c6875 100755 (executable)
@@ -180,6 +180,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 --"