Red Hat Bugzilla – Bug 972775
txz-out command produces a bzip2-compressed file (should be xz-compressed)
Last modified: 2013-06-10 11:13:37 EDT
+++ This bug was initially created as a clone of Bug #972413 +++
Description of problem:
txz-in unpack the tarball,which is packed by txz-out, failed.
though it is marked as "deprecated" in its help output, it is still provided.
$ guestfish -N fs -m /dev/sda1 mkdir /test : touch /test/1.txt : txz-out /test test.txz
$ file test.txz
test.txz.out: bzip2 compressed data, block size = 900k
(Note that the type of 'test.txz' should not be bzip2-compressed.
It should be xz-compressed)
$ ./run ./fish/guestfish -N fs -m /dev/sda1
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.
Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell
><fs> mkdir /test
><fs> touch /test/1.txt
><fs> txz-out /test /tmp/test.txz
><fs> !file /tmp/test.txz
/tmp/test.txz: XZ compressed data
><fs> !ls -l /tmp/test.txz
-rw-rw-r--. 1 rjones rjones 184 Jun 10 16:11 /tmp/test.txz
><fs> mkdir /new
><fs> txz-in /tmp/test.txz /new
><fs> ll /new
drwxr-xr-x 2 root root 1024 Jun 10 16:11 .
drwxr-xr-x 5 root root 1024 Jun 10 16:11 ..
-rw-r--r-- 1 root root 0 Jun 10 16:11 1.txt