summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/restore-image.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index e762f618b..ba9400906 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -252,6 +252,7 @@ function write_image()
case $extension in
gz)
uncomp=zcat
+ total=$(gzip -l $images_dir/$image | tail -n 1 | awk '{ print $2 }')
;;
bz2)
uncomp=bzcat