From 697118eb8ea093f68a4650d9329b3511b8f4cb45 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 11 Feb 2009 15:20:08 +0000 Subject: inline again first disk --- rescue/restore-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rescue/restore-image.sh') diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 837c7821a..0bb234bac 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -96,7 +96,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 - first_disk=$(echo ${devices} | cut -d ' ' -f 1) + first_disk= # get the last created windows partition information set -f @@ -125,7 +125,7 @@ function detect_root() fi fi else - root=$first_disk + root=$(echo ${devices} | cut -d ' ' -f 1) fi fi -- cgit v1.2.1