summaryrefslogtreecommitdiffstats
path: root/rescue/Flash/scripts
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-20 14:31:44 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-20 14:31:44 +0000
commit16331e73495f66961412d6d949679d4916334681 (patch)
tree43a61b8104f13b6c7575d58889402a3a5076d9f0 /rescue/Flash/scripts
parentea205f274ac37ca45253e0241ac16c470b15e8bd (diff)
downloaddrakx-backup-do-not-use-16331e73495f66961412d6d949679d4916334681.tar
drakx-backup-do-not-use-16331e73495f66961412d6d949679d4916334681.tar.gz
drakx-backup-do-not-use-16331e73495f66961412d6d949679d4916334681.tar.bz2
drakx-backup-do-not-use-16331e73495f66961412d6d949679d4916334681.tar.xz
drakx-backup-do-not-use-16331e73495f66961412d6d949679d4916334681.zip
reapply lang configuration, mostly to rewrite kdeglobals
Diffstat (limited to 'rescue/Flash/scripts')
-rwxr-xr-xrescue/Flash/scripts/upgrade10
1 files changed, 10 insertions, 0 deletions
diff --git a/rescue/Flash/scripts/upgrade b/rescue/Flash/scripts/upgrade
index 2bf37081c..3999881da 100755
--- a/rescue/Flash/scripts/upgrade
+++ b/rescue/Flash/scripts/upgrade
@@ -167,6 +167,16 @@ function merge_config_files() {
upgrade.merge-users $tmpdir/user/etc $tmpdir/squash/etc
+ mount -t unionfs -o dirs=$tmpdir/user=rw:$tmpdir/squash=ro \
+ none $tmpdir/union
+ if [ $? -ne 0 ]; then
+ echo "Error creating union of distrib.sqfs and system.loop"
+ return 1
+ fi
+
+ #- reapply lang configuration, mostly to rewrite kdeglobals
+ chroot $tmpdir/union perl -I/usr/lib/libDrakX -Mlang -e "lang::write(lang::read())" &>/dev/null
+
return 0
}