aboutsummaryrefslogtreecommitdiffstats
path: root/iurt
diff options
context:
space:
mode:
Diffstat (limited to 'iurt')
-rwxr-xr-xiurt6
1 files changed, 5 insertions, 1 deletions
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