Bug 580556

Summary: request for libguestfs to support .txz tarballs
Product: [Community] Virtualization Tools Reporter: Eric Blake <eblake>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-13 21:30:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Blake 2010-04-08 14:06:49 UTC
Description of problem:
libguestfs has the tar-{in,out} and tgz-{in,out} commands for working with uncompressed and gzip-compressed tarballs.  However, the xz tool (lzma compression) tends to have smaller disk space and comparable or even faster decompression.  Therefore, it would make sense to have txz-{in,out} commands to natively support .xz compression.

Version-Release number of selected component (if applicable):
$ guestfish --version
guestfish 1.0.85

How reproducible:
Always.

Steps to Reproduce:
1. guestfish -x alloc output.img 14M : run : \
  sfdiskM /dev/sda , : \
  mkfs ext2 /dev/sda1 : \
  mount /dev/sda1 / : \
  txz-in something.tar.xz /

Actual results:
txz-in something.tar.xz
txz-in: unknown command

Expected results:
Create a disk image from the .xz-compressed tarball.

Additional info:
Workaround: Manually decompress the tarball, and fall back to tar-in instead of the requested txz-in.

Comment 2 Richard W.M. Jones 2010-04-13 21:30:21 UTC
Fixed upstream.