summaryrefslogtreecommitdiffstats
path: root/rescue/Flash/scripts
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-20 08:52:40 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-20 08:52:40 +0000
commit88a43fe3899b44f84e215625968c23205c53dafb (patch)
treeedde1b912ac14859bf076418d48927687f24fd2a /rescue/Flash/scripts
parent0754548a93f36b939baf8337538f80d71714bd30 (diff)
downloaddrakx-backup-do-not-use-88a43fe3899b44f84e215625968c23205c53dafb.tar
drakx-backup-do-not-use-88a43fe3899b44f84e215625968c23205c53dafb.tar.gz
drakx-backup-do-not-use-88a43fe3899b44f84e215625968c23205c53dafb.tar.bz2
drakx-backup-do-not-use-88a43fe3899b44f84e215625968c23205c53dafb.tar.xz
drakx-backup-do-not-use-88a43fe3899b44f84e215625968c23205c53dafb.zip
make required directories writable on the FAT partition
Diffstat (limited to 'rescue/Flash/scripts')
-rwxr-xr-xrescue/Flash/scripts/upgrade2
1 files changed, 2 insertions, 0 deletions
diff --git a/rescue/Flash/scripts/upgrade b/rescue/Flash/scripts/upgrade
index 736091365..798ee01d0 100755
--- a/rescue/Flash/scripts/upgrade
+++ b/rescue/Flash/scripts/upgrade
@@ -145,6 +145,8 @@ function copy_new_version() {
[ -d "$modules_dir" ] && rm -rf $modules_dir
cp -a $upgrade_dir/* $upgrade_dir/.??* $rootdir
+ chmod -R u+w $rootdir
+ chmod -R u-w $rootdir$boot_rel $rootdir$loopbacks_rel
new_label=$(source_version_variables "2.0"; echo $label)
MTOOLS_SKIP_CHECK=1 mlabel -i $usbroot_device ::$new_label