} else {
die "unable to detect size\n";
}
- $self->logmsg ("$size MB\n");
+ $self->logmsg ("uncompressed size: $size MB\n");
$self->write_config ("$rootdir/etc/appliance.info", $size);
$self->run_command ("tar cpf $target --numeric-owner -C '$rootdir' ./etc/appliance.info");
$self->run_command ("tar rpf $target --numeric-owner -C '$rootdir' --exclude ./etc/appliance.info .");
+
+ $self->logmsg ("compressing archive\n");
$self->run_command ("gzip $target");
+
+ my $target_size = int(-s "$target.gz") >> 20;
+ $self->logmsg ("created '$target.gz' with size: $target_size MB\n");
}
sub enter {