summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-11 15:20:08 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-11 15:20:08 +0000
commit697118eb8ea093f68a4650d9329b3511b8f4cb45 (patch)
treed931901c17d368c1e029b084d16f1a96a8525cc1 /rescue
parent0b7d60ca59f0d33facd292513fe392e303bce9fe (diff)
downloaddrakx-697118eb8ea093f68a4650d9329b3511b8f4cb45.tar
drakx-697118eb8ea093f68a4650d9329b3511b8f4cb45.tar.gz
drakx-697118eb8ea093f68a4650d9329b3511b8f4cb45.tar.bz2
drakx-697118eb8ea093f68a4650d9329b3511b8f4cb45.tar.xz
drakx-697118eb8ea093f68a4650d9329b3511b8f4cb45.zip
inline again first disk
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/restore-image.sh4
1 files changed, 2 insertions, 2 deletions
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