summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-12 11:06:12 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-12 11:06:12 +0000
commitd82841b727c6d9e8debc0d049272c13553fd80fe (patch)
tree4e6bbfcc15beaa52d37bffa3f1bd7d5fc9a3d9d5
parent8558c425a79c803f01d51934c14dafbafd80ea84 (diff)
downloaddrakx-backup-do-not-use-d82841b727c6d9e8debc0d049272c13553fd80fe.tar
drakx-backup-do-not-use-d82841b727c6d9e8debc0d049272c13553fd80fe.tar.gz
drakx-backup-do-not-use-d82841b727c6d9e8debc0d049272c13553fd80fe.tar.bz2
drakx-backup-do-not-use-d82841b727c6d9e8debc0d049272c13553fd80fe.tar.xz
drakx-backup-do-not-use-d82841b727c6d9e8debc0d049272c13553fd80fe.zip
always echo root to handle back one-disk systems (echoing an empty root does not matter, since caller checks)
-rwxr-xr-xrescue/restore-image.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 5d807c4ab..dade72dee 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -97,13 +97,14 @@ function detect_root()
fi
else
root=$opcao
- fi
-
- echo "$root"
+ fi
else
_msgbox "\nError writing image: disk device not detected.\n"
fi
+ else
+ root=$(echo $devices | cut -d ' ' -f 1)
fi
+ echo "$root"
}
function write_image()