diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-02-11 15:22:13 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-02-11 15:22:13 +0000 |
commit | 4851a9d2f83f428b7f21626bbbd1edee7bbb221c (patch) | |
tree | b515293d90b76279d4e58b9c27db1ff0d10b1e44 /rescue | |
parent | 54a9c4ab7247b23a556c7add155caeba1a723968 (diff) | |
download | drakx-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.tar drakx-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.tar.gz drakx-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.tar.bz2 drakx-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.tar.xz drakx-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.zip |
rename dev as inst_source_dev
Diffstat (limited to 'rescue')
-rwxr-xr-x | rescue/restore-image.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 55097bf5a..a8eb8e2cb 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -86,8 +86,8 @@ do you want to continue?\n " function detect_root() { - dev=$(sed '\|'$restore_media'|!d;s/[0-9] .*$//;s/^.*\///' /proc/mounts) - devices=$(grep "^ .*[^0-9]$" < /proc/partitions | grep -v ${dev} | awk '$3 > '$MIN_DISKSIZE' { print $4,$3 }') + inst_source_dev=$(sed '\|'$restore_media'|!d;s/[0-9] .*$//;s/^.*\///' /proc/mounts) + devices=$(grep "^ .*[^0-9]$" < /proc/partitions | grep -v ${inst_source_dev} | awk '$3 > '$MIN_DISKSIZE' { print $4,$3 }') if [ -z "${devices}" ]; then exit 1 @@ -95,7 +95,7 @@ function detect_root() devs_found=$(($(echo $devices | wc -w)/2)) # we might use it later again - fdisk -l | grep "^/dev/" | grep -v ${dev} > /tmp/fdisk.log + fdisk -l | grep "^/dev/" | grep -v ${inst_source_dev} > /tmp/fdisk.log # get the last created windows partition information set -f @@ -112,7 +112,7 @@ function detect_root() if [ -z "${root}" ]; then rm -rf /tmp/fdisk.log if [ "$devs_found" -gt "1" ]; then - if [ ! -z ${dev} ]; then + if [ ! -z ${inst_source_dev} ]; then opcao=$(dialog --backtitle "$BACKTITLE" --title "$TITLE" --stdout --menu 'Choose one of the detected devices to restore to (check the blocks size column first):' 8 50 0 $devices ) if [ "$?" != "0" ]; then _yesno "\nInterrupt installation?\n " |