[PATCH] lsinitrd.sh: don't choke on LZO-compressed images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lsinitrd.sh b/lsinitrd.sh
index a697bc2..4ba8752 100755
--- a/lsinitrd.sh
+++ b/lsinitrd.sh
@@ -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 --"
-- 
2.0.0

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux