summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-20 14:29:39 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-20 14:29:39 +0000
commitea205f274ac37ca45253e0241ac16c470b15e8bd (patch)
treea756df40bad38d7868a31991dcc64866ce4a5a68 /rescue
parent2acb2a5f8b5545b81b878beee6288e57b4fbc35e (diff)
downloaddrakx-ea205f274ac37ca45253e0241ac16c470b15e8bd.tar
drakx-ea205f274ac37ca45253e0241ac16c470b15e8bd.tar.gz
drakx-ea205f274ac37ca45253e0241ac16c470b15e8bd.tar.bz2
drakx-ea205f274ac37ca45253e0241ac16c470b15e8bd.tar.xz
drakx-ea205f274ac37ca45253e0241ac16c470b15e8bd.zip
use "tar c | pv | tar x" to have a neat progress bar during copy
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/Flash/scripts/upgrade6
1 files changed, 3 insertions, 3 deletions
diff --git a/rescue/Flash/scripts/upgrade b/rescue/Flash/scripts/upgrade
index 8ba8e5bc4..2bf37081c 100755
--- a/rescue/Flash/scripts/upgrade
+++ b/rescue/Flash/scripts/upgrade
@@ -136,15 +136,15 @@ function remove_non_user_nor_config_files() {
function copy_new_version() {
echo "Copying new Mandriva Flash system..."
- echo "(this can take some dozens of minutes)"
- echo
rm -rf $rootdir$boot_rel
rm -f $rootdir$loopbacks_rel/.*sqf
rm -f $rootdir$loopbacks_rel/.*sqfs
[ -d "$modules_dir" ] && rm -rf $modules_dir
- cp -a $upgrade_dir/* $upgrade_dir/.??* $rootdir
+ tar c -C $upgrade_dir . | pv -s `du -sb $upgrade_dir | cut -f 1` | tar x -C $rootdir
+ echo
+
chmod -R u+w $rootdir
chmod -R u-w $rootdir$boot_rel $rootdir$loopbacks_rel