diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-11-19 17:04:23 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-11-19 17:04:23 +0000 |
commit | d25bcab33c08748bcffe20a6f40901cfc173a21e (patch) | |
tree | d3fe37d7beef5918cfb4a2d9d4558ad5d132ba87 | |
parent | f62c6409edf667172b28f327cb99b321e1d054ae (diff) | |
download | iurt-d25bcab33c08748bcffe20a6f40901cfc173a21e.tar iurt-d25bcab33c08748bcffe20a6f40901cfc173a21e.tar.gz iurt-d25bcab33c08748bcffe20a6f40901cfc173a21e.tar.bz2 iurt-d25bcab33c08748bcffe20a6f40901cfc173a21e.tar.xz iurt-d25bcab33c08748bcffe20a6f40901cfc173a21e.zip |
Support chroot tarballs with non gz compression
Especially, with no compression when speed is more important than a few hundres MBs
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | iurt | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- iurt: support chroot tarballs with non gz compression + 0.6.28 - ulri: only fail succesful arches if previous failure was from a mandatory arch @@ -428,6 +428,10 @@ my %config_usage = ( desc => 'Where to store chroots', default => $HOME }, + chroot_tar_suffix => { + desc => 'Suffix for the chroot tarball, must be supported by tar', + default => '.gz' + }, iurt_root_command => { desc => 'Program to run sudo command', default => '/usr/sbin/iurt_root_command' @@ -659,7 +663,7 @@ $run{chroot_path} = $chroot; if ($run{storage} eq 'btrfs') { $chroot_ref = "$chroot_base/$chroot_name"; } else { - $chroot_ref = "$chroot_base/$chroot_name.tar.gz"; + $chroot_ref = "$chroot_base/$chroot_name.tar$run{chroot_tar_suffix}"; } $run{chroot_ref} = $chroot_ref; # 20061222 warly |