aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-11-19 17:04:23 +0000
committerPascal Terjan <pterjan@gmail.com>2016-11-19 17:04:23 +0000
commitd25bcab33c08748bcffe20a6f40901cfc173a21e (patch)
treed3fe37d7beef5918cfb4a2d9d4558ad5d132ba87
parentf62c6409edf667172b28f327cb99b321e1d054ae (diff)
downloadiurt-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--NEWS2
-rwxr-xr-xiurt6
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7779c9a..0870714 100644
--- a/NEWS
+++ b/NEWS
@@ -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
diff --git a/iurt b/iurt
index 39a476f..5704a7e 100755
--- a/iurt
+++ b/iurt
@@ -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