mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Tobias Geerinckx
	<tobias.geerinckx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] lsinitrd.sh: don't choke on LZO-compressed images
Date: Thu, 03 Jul 2014 09:22:04 +0200	[thread overview]
Message-ID: <53B5049C.8030306@redhat.com> (raw)
In-Reply-To: <1401764374-17744-1-git-send-email-tobias.geerinckx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

On 03.06.2014 04:59, Tobias Geerinckx wrote:
> 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 --"
> 

Thanks! In dracut-038

      parent reply	other threads:[~2014-07-03  7:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53B5049C.8030306@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=tobias.geerinckx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox