diff options
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 32e1cc178..e762f618b 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -247,6 +247,8 @@ 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 @@ -269,7 +271,6 @@ function write_image() sleep 3 pid=$(ps ax | grep 'dd bs=4M of' | grep -v grep | awk '{ print $1 }') - total=1000 while [ true ]; do ps | grep -q $pid |