summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-05 15:03:11 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-05 15:03:11 +0000
commitd0b92b6eb207b2fd8282e60eb49c91a652c27e27 (patch)
tree65f775c409ae282298324c52a3924356b43091c9
parentae09913b27a6e36d243f4488a2c2271bd537de26 (diff)
downloaddrakx-d0b92b6eb207b2fd8282e60eb49c91a652c27e27.tar
drakx-d0b92b6eb207b2fd8282e60eb49c91a652c27e27.tar.gz
drakx-d0b92b6eb207b2fd8282e60eb49c91a652c27e27.tar.bz2
drakx-d0b92b6eb207b2fd8282e60eb49c91a652c27e27.tar.xz
drakx-d0b92b6eb207b2fd8282e60eb49c91a652c27e27.zip
use version-specific loopbacks relative path
-rwxr-xr-xrescue/Flash/scripts/upgrade10
1 files changed, 3 insertions, 7 deletions
diff --git a/rescue/Flash/scripts/upgrade b/rescue/Flash/scripts/upgrade
index 1f5897ea4..f6d60bd34 100755
--- a/rescue/Flash/scripts/upgrade
+++ b/rescue/Flash/scripts/upgrade
@@ -174,13 +174,9 @@ if ! insert_pendrive; then
exit 1
fi
-if [ x"$version" = x"1.0" ]; then
- sys_loop="$rootdir/loopbacks/system.loop"
- sfs_loop="$rootdir/loopbacks/distrib.sqfs"
-else
- sys_loop="$rootdir/.loopbacks/system.loop"
- sfs_loop="$rootdir/.loopbacks/distrib.sqfs"
-fi
+#- works only when upgrading versions with the same layout
+sys_loop="$rootdir$loopbacks_rel/system.loop"
+sfs_loop="$rootdir$loopbacks_rel/distrib.sqfs"
if ! prepare; then
cleanup