From d25bcab33c08748bcffe20a6f40901cfc173a21e Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 19 Nov 2016 17:04:23 +0000 Subject: Support chroot tarballs with non gz compression Especially, with no compression when speed is more important than a few hundres MBs --- NEWS | 2 ++ iurt | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1