diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-02-11 16:34:11 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-02-11 16:34:11 +0000 |
commit | 3a008591d3dd922966bc1a528ea45d743c16607e (patch) | |
tree | fada5c11eda57ea5b867c73fe5558150a7fb636f /rescue | |
parent | 15895b7c5a7fc11ffd38ce594aade206e64daa27 (diff) | |
download | drakx-3a008591d3dd922966bc1a528ea45d743c16607e.tar drakx-3a008591d3dd922966bc1a528ea45d743c16607e.tar.gz drakx-3a008591d3dd922966bc1a528ea45d743c16607e.tar.bz2 drakx-3a008591d3dd922966bc1a528ea45d743c16607e.tar.xz drakx-3a008591d3dd922966bc1a528ea45d743c16607e.zip |
echo device without /dev
Diffstat (limited to 'rescue')
-rwxr-xr-x | rescue/restore-image.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 084cd97b3..19a177104 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -164,9 +164,7 @@ function detect_win32() # our install takes half of 'left' win32_part_new_size=$(($((${used}+${avail}))*2)) - disk=${device%[0-9]} - number=$(echo ${device} | sed 's@/dev/...@@g') - echo "${disk}${number}" + echo ${win32_part_dev} | sed 's@/dev/@@' fi } |