summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/restore-image.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index a8eb8e2cb..c59113f9c 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -103,7 +103,7 @@ function detect_root()
set +f
# won't handle complex layouts
- if [ ! $(grep "^/dev" /tmp/fdisk.log | wc -l) -gt 1 ]; then
+ if [ "${devs_found}" = 1 ]; then
if [ -n "${first_win32_part_dev}" ]; then
root=$(detect_and_resize_win32 $first_win32_part_dev)
fi