All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lsinitrd.sh: don't choke on LZO-compressed images
@ 2014-06-03  2:59 Tobias Geerinckx
       [not found] ` <1401764374-17744-1-git-send-email-tobias.geerinckx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Geerinckx @ 2014-06-03  2:59 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Tobias Geerinckx

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-03  7:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03  2:59 [PATCH] lsinitrd.sh: don't choke on LZO-compressed images Tobias Geerinckx
     [not found] ` <1401764374-17744-1-git-send-email-tobias.geerinckx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-07-03  7:22   ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.