diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-07-20 14:29:39 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-07-20 14:29:39 +0000 |
commit | ea205f274ac37ca45253e0241ac16c470b15e8bd (patch) | |
tree | a756df40bad38d7868a31991dcc64866ce4a5a68 /rescue | |
parent | 2acb2a5f8b5545b81b878beee6288e57b4fbc35e (diff) | |
download | drakx-backup-do-not-use-ea205f274ac37ca45253e0241ac16c470b15e8bd.tar drakx-backup-do-not-use-ea205f274ac37ca45253e0241ac16c470b15e8bd.tar.gz drakx-backup-do-not-use-ea205f274ac37ca45253e0241ac16c470b15e8bd.tar.bz2 drakx-backup-do-not-use-ea205f274ac37ca45253e0241ac16c470b15e8bd.tar.xz drakx-backup-do-not-use-ea205f274ac37ca45253e0241ac16c470b15e8bd.zip |
use "tar c | pv | tar x" to have a neat progress bar during copy
Diffstat (limited to 'rescue')
-rwxr-xr-x | rescue/Flash/scripts/upgrade | 6 |
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 |