summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-11 15:15:40 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-11 15:15:40 +0000
commit6a9052cf64016de8e26f40a9b6fff1351fce1adf (patch)
tree0625abdec590de92e04ec7a4b4b11114cf554aeb
parentb2c88cdabea873d5c728cc694e571f2d095b7df8 (diff)
downloaddrakx-6a9052cf64016de8e26f40a9b6fff1351fce1adf.tar
drakx-6a9052cf64016de8e26f40a9b6fff1351fce1adf.tar.gz
drakx-6a9052cf64016de8e26f40a9b6fff1351fce1adf.tar.bz2
drakx-6a9052cf64016de8e26f40a9b6fff1351fce1adf.tar.xz
drakx-6a9052cf64016de8e26f40a9b6fff1351fce1adf.zip
oops, keep number here
-rwxr-xr-xrescue/restore-image.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index c82846bbd..1ee86fffc 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -158,6 +158,7 @@ function detect_and_resize_win32()
# our install takes half of 'left'
win32_part_new_size=$(($((${used}+${avail}))*2))
resize_win32 ${win32_part_dev} ${win32_part_type} ${win32_part_new_size}
+ number=$(echo ${win32_part_dev} | sed 's@/dev/...@@g')
echo "${disk}${number}"
fi
}
@@ -169,10 +170,7 @@ function resize_win32()
new_win32_size=${3}
disk=${device%[0-9]}
-
- # get the next partition integer
number=$(echo ${device} | sed 's@/dev/...@@g')
- let number++
case ${device_type} in
vfat) device_id=b ;;