search for: xzcat

Displaying 20 results from an estimated 42 matches for "xzcat".

Did you mean: zcat
2017 Mar 13
0
[PATCH 1/2] v2v: -i ova: Hoist utility functions to the top of the file.
...ys.is_directory files in + let files = + List.filter (fun x -> Filename.check_suffix x ext) files in + files @ loop (rest @ dirs) + in + loop [dir] + +(* Uncompress the first few bytes of [file] and return it as + * [(bytes, len)]. [zcat] is the command to use (eg. zcat or xzcat). + *) +let uncompress_head zcat file = + let cmd = sprintf "%s %s" zcat (quote file) in + let chan_out, chan_in, chan_err = Unix.open_process_full cmd [||] in + let b = Bytes.create 512 in + let len = input chan_out b 0 (Bytes.length b) in + (* We're expecting the subprocess to...
2017 Jan 12
3
[PATCH 0/3] library: improve handling of external tools
Hi, the libguestfs library uses a number of external tools; for some of them, we search for them at build time, enabling some feature only if found, and later on assuming at runtime they are installed. However, the situation is more complex than that: - hardcoding the full path means that there is an incoherency in the way some of the tools are used, as some other tools (e.g. qemu-img) are
2018 Jan 31
4
How is initrd.img packed and compressed?
...as the original initrd.img that ships with the distro. I would like to know the proper incantation used to package initrd.img Now for the specifics. The original image: http://mirror.steadfast.net/ centos/7.4.1708/os/x86_64/isolinux/initrd.img is extracted: /usr/lib/dracut/skipcpio initrd.img | xzcat | cpio -i -d and after adding the needed udev rule, it gets packed and compressed as follows: find . 2>/dev/null | cpio --quiet -c -o | xz -9 --format=lzma >"~/patched-initrd.img" Now for the difference. FIrst the original distro image: # file initrd.img initrd.img: xz compressed...
2013 Nov 07
2
Re: Kernel panic with virt-builder etc.
...iance clean make -C appliance all Anyway, a simpler alternative to all this is to download the ~70MB precompiled appliance from http://libguestfs.org/download/binaries/appliance/ Here's how to use that: cd /tmp wget http://libguestfs.org/download/binaries/appliance/appliance-1.24.0.tar.xz xzcat appliance-1.24.0.tar.xz | tar xvf - Set LIBGUESTFS_PATH to point to the appliance: export LIBGUESTFS_PATH=/tmp/appliance Recompile libguestfs without the appliance code: ./configure --disable-appliance --disable-daemon && make -j5 and you can run commands using the ./run script: expor...
2017 Feb 02
4
[PATCH v2 0/3] library: improve handling of external tools
Hi, the libguestfs library uses a number of external tools; for some of them, we search for them at build time, enabling some feature only if found, and later on assuming at runtime they are installed. However, the situation is more complex than that: - hardcoding the full path means that there is an incoherency in the way some of the tools are used, as some other tools (e.g. qemu-img) are
2017 Mar 03
2
imaging a drive with dd
...hots_backup.html > > Why reinvent the wheel? This is Centos7-armv7. Not all the tools are there. I keep getting surprises in some rpm not in the repo, but if I dig I will find it (but php-imap is NOT built yet and that I need). The base image is a dd, and you start with something like: xzcat CentOS-Userland-7-armv7hl-Minimal-1611-CubieTruck.img.xz | sudo dd of=/dev/sdb bs=4M; sync btw, this reports: 0+354250 records in 0+354250 records out 3221225472 bytes (3.2 GB, 3.0 GiB) copied, 120.656 s, 26.7 MB/s Then you boot up (connected via the JART with a USB/TTL for a serial console)....
2017 May 08
3
[PATCH 0/3] v2v: -i ova: Prefer pigz or pxz for uncompressing OVA
https://bugzilla.redhat.com/show_bug.cgi?id=1448739
2016 Oct 10
0
[PATCH] p2v: Compress virt-p2v binary and store it in $libdir/virt-p2v (RHBZ#1382275).
...urself." echo "See guestfs-building(1) section BUILDING i686 32 BIT VIRT-P2V for help." fi exit 1 @@ -167,6 +162,10 @@ cleanup () } trap cleanup INT QUIT TERM EXIT ERR +# Uncompress the virt-p2v binary into tmpdir. +virt_p2v_binary="$tmpdir/virt-p2v" +xzcat "$virt_p2v_xz_binary" > "$virt_p2v_binary" + # Variations depending on the target distro. The main difference # is in the list of distro packages we add to the base appliance. case "$osversion" in @@ -235,9 +234,9 @@ virt-builder "$osversion"...
2016 Apr 21
2
[PATCH 1/2] sparsify: Refactor handling of checks of copying mode / --in-place.
Just refactoring, no change. --- sparsify/cmdline.ml | 49 +++++++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/sparsify/cmdline.ml b/sparsify/cmdline.ml index ce2b913..bd49e71 100644 --- a/sparsify/cmdline.ml +++ b/sparsify/cmdline.ml @@ -98,6 +98,7 @@ read the man page virt-sparsify(1). let check_tmpdir = !check_tmpdir in let
2014 Nov 09
1
Bug#767295: Bug#767295: Bug#767295: xl: apparent memory leak
On 11/09/2014 07:18 AM, Gedalya wrote: > That memory block is just a bit larger than the size of the initrd in > the VM, could there be a connection? Nope. I changed the initrd to 2.6mb and that memory block is still exactly at 23852 / 14464 / 14464. Actually the process size is around 12 mb when pygrub is counting down to boot, then jumps up to 14+ mb
2018 Jan 31
0
How is initrd.img packed and compressed?
...hat ships with the distro. > I would like to know the proper incantation > used to package initrd.img > > Now for the specifics. The original image: http://mirror.steadfast.net/ > centos/7.4.1708/os/x86_64/isolinux/initrd.img > is extracted: /usr/lib/dracut/skipcpio initrd.img | xzcat | cpio -i -d > and after adding the needed udev rule, it gets packed and compressed as > follows: > > find . 2>/dev/null | cpio --quiet -c -o | xz -9 > --format=lzma >"~/patched-initrd.img" > > Now for the difference. FIrst the original distro image: > # fi...
2012 Mar 22
0
ANN: libguestfs on Debian and Ubuntu
...able. You could try the Debian packages, or build from source using the "fixed appliance" which is pretty simple: ./configure --disable-appliance --disable-daemon make sudo make install # download the latest appliance from # http://libguestfs.org/download/binaries/appliance/ xzcat appliance-*.tar.xz | tar xvf - export LIBGUESTFS_PATH=/path/to/the/appliance # then run libguestfs tools as normal For Ubuntu 10.04 only you will need to install some backports, and patch libguestfs sources, see: http://libguestfs.org/download/binaries/ubuntu1004-packages/ Rich. -- Richa...
2012 Nov 27
6
How to clean up /
...sed 5M /rescue/tail 5M /rescue/tee 5M /rescue/gzip 5M /rescue/gunzip 5M /rescue/gzcat 5M /rescue/zcat 5M /rescue/bzip2 5M /rescue/bunzip2 5M /rescue/bzcat 5M /rescue/xz 5M /rescue/unxz 5M /rescue/lzma 5M /rescue/unlzma 5M /rescue/xzcat 5M /rescue/lzcat 5M /rescue/tar 5M /rescue/vi 5M /rescue/ex 5M /rescue/id 5M /rescue/groups 5M /rescue/whoami 5M /rescue/chroot 5M /rescue/chown 5M /rescue/chgrp 5M /rescue/nc 76M /compat/linux/usr/lib/locale/locale-archive.tmpl 8.0M /.su...
2017 Nov 21
0
[PATCH] builder: planner: Don't add some impossible transitions.
...k_dev then + if not output_is_block_dev && infile <> output_filename then tr `Move ((`Filename, output_filename) :: itags); tr `Move ((`Filename, tempfile) :: itags) ); @@ -490,7 +492,7 @@ let main () = (* If the input is XZ-compressed, then we can run xzcat, either * to the output file or to a temp file. *) - if not output_is_block_dev then + if not output_is_block_dev && infile <> output_filename then tr `Pxzcat ((`Filename, output_filename) :: remove `XZ (remove `Template itags)); tr...
2017 Mar 03
8
imaging a drive with dd
I am building a mailserver and with all the steps, I want to image the drive at various 'checkpoints' so I can go back and redo from a particular point. The image is currently only 4GB on a 120GB drive. Fdisk reports: Disk /dev/sdb: 111.8 GiB, 120034124288 bytes, 234441649 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size
2017 Nov 21
1
[PATCH v2] builder: planner: Don't add some impossible transitions.
Previous patch contained a typo. Changed output_format -> output_filename. Rich.
2017 Mar 03
4
imaging a drive with dd
On 3/3/2017 5:34 AM, Robert Moskowitz wrote: > Well, I only wanted to copy the used part of the drive which I try to > keep small so I can still copy the image to an mSD card if I wish. So > I have to supply the amount of the drive to copy. The bs=512 went > fast enough, but then I was only copying 3.2GB. > > thanks for the help. personally, I would use 'dump' for
2017 Mar 13
4
[PATCH 0/2] v2v: -i ova: A couple of cleanup patches.
A couple of patches cleaning up the -i ova code. These are both just refactoring (or should be at any rate). The second patch is best viewed with 'git show -w' to exclude whitespace changes. Rich.
2018 Aug 14
5
[PATCH 1/4] build: Use LT_INIT in configure.ac.
Avoids the warning: libtoolize: Remember to add 'LT_INIT' to configure.ac. This is the new name for AC_PROG_LIBTOOL, so I removed that. However to use this macro we must enable AC_USE_SYSTEM_EXTENSIONS. (AC_GNU_SOURCE was removed back in 2011). --- configure.ac | 5 +++++ m4/guestfs-progs.m4 | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac
2013 Nov 07
2
Re: Kernel panic with virt-builder etc.
I've just built libguestfs (from git) on Ubuntu 13.10 and it worked for me. Here's what I did: * Clone libguestfs from git: git clone https://github.com/libguestfs/libguestfs.git cd libguestfs * Create a file called 'localconfigure' containing: ---------------------------------------------------------------------- . localenv ./autogen.sh \ --prefix /usr \ --libdir /usr/lib