summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-11 15:22:13 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-11 15:22:13 +0000
commit4851a9d2f83f428b7f21626bbbd1edee7bbb221c (patch)
treeb515293d90b76279d4e58b9c27db1ff0d10b1e44 /rescue/restore-image.sh
parent54a9c4ab7247b23a556c7add155caeba1a723968 (diff)
downloaddrakx-backup-do-not-use-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.tar
drakx-backup-do-not-use-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.tar.gz
drakx-backup-do-not-use-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.tar.bz2
drakx-backup-do-not-use-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.tar.xz
drakx-backup-do-not-use-4851a9d2f83f428b7f21626bbbd1edee7bbb221c.zip
rename dev as inst_source_dev
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh8
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 "