From: Tobias Geerinckx Date: Tue, 3 Jun 2014 02:59:34 +0000 (+0200) Subject: lsinitrd.sh: don't choke on LZO-compressed images X-Git-Tag: 038~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=773d6a7ded0cc717ecfb7bed6e3f52ceedfb1834;p=thirdparty%2Fdracut.git lsinitrd.sh: don't choke on LZO-compressed images 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. --- diff --git a/lsinitrd.sh b/lsinitrd.sh index a697bc2b7..4ba8752c4 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 --"