summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index ba9400906..b923a7a93 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -248,7 +248,6 @@ function write_image()
image=$(cat $images_dir/list | cut -d ',' -f 3)
extension=$(echo $image | cut -d '.' -f 3)
imagesize=$(ls -l $images_dir/$image | awk '{ print $5 }')
- total=$imagesize
case $extension in
gz)
uncomp=zcat
@@ -256,9 +255,11 @@ function write_image()
;;
bz2)
uncomp=bzcat
+ total=$((imagesize * 3))
;;
*)
uncomp=cat
+ total=$imagesize
;;
esac