Bug 766702 - file could not determine XZ archive
Summary: file could not determine XZ archive
Keywords:
Status: CLOSED DUPLICATE of bug 747999
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: file
Version: 6.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 15:19 UTC by Miroslav Suchý
Modified: 2011-12-13 07:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-13 07:47:20 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Miroslav Suchý 2011-12-12 15:19:59 UTC
Take initramdisk of rhel 6.2, which is cpio archive packed by XZ.
And run it through file:

$ file /tmp/initrd.img
/tmp/initrd.img: data

It happens on RHEL6 and even on Fedora 16.

And despite the fact that 
/usr/share/misc/magic
contains:
# http://tukaani.org/xz/xz-file-format.txt
0       ustring         \xFD7zXZ\x00            XZ compressed data
!:mime  application/x-xz

Additional info:
$ hexdump /tmp/initrd.img|head -n5
0000000 005d 0000 ff04 ffff ffff ffff 00ff 0d18
0000010 04dd 8363 7421 c707 f6d2 d69f 1091 7626
0000020 0ade 0f1f 48db 24ef 121f a4ba 5962 b486
0000030 2e9d 164c 96ae 9776 d317 8071 1d28 5c89
0000040 43d7 26d6 370f 1349 3018 8c78 a86b 874d

Comment 1 Jan Kaluža 2011-12-13 07:47:20 UTC
This is LZMA compression. There's already bug for RHEL6 mentioning initrd.img. Closing as DUPLICATE.

*** This bug has been marked as a duplicate of bug 747999 ***


Note You need to log in before you can comment on or make changes to this bug.