summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-26 14:37:02 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-26 14:37:02 +0000
commit5b177376812a198be11e5ab72a953754476e5ec8 (patch)
treee3d8c6c92638d24b02ff4815758440d4c06ba8c0 /rescue/restore-image.sh
parente505224a6bec8de07f93df4d3c81be4f17babf84 (diff)
downloaddrakx-5b177376812a198be11e5ab72a953754476e5ec8.tar
drakx-5b177376812a198be11e5ab72a953754476e5ec8.tar.gz
drakx-5b177376812a198be11e5ab72a953754476e5ec8.tar.bz2
drakx-5b177376812a198be11e5ab72a953754476e5ec8.tar.xz
drakx-5b177376812a198be11e5ab72a953754476e5ec8.zip
use gzip -l to guess uncompressed size of gzip images
Diffstat (limited to 'rescue/restore-image.sh')
-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