summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-11 15:37:35 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-11 15:37:35 +0000
commitfdb11d4baf9ae3bdf1649064c91e80a4d541f9b9 (patch)
tree9a95ce415077173ac7b7d39e2076f81c84047756 /rescue/restore-image.sh
parentaff17513b052c6edfdc548bfe72cfb8ece866244 (diff)
downloaddrakx-fdb11d4baf9ae3bdf1649064c91e80a4d541f9b9.tar
drakx-fdb11d4baf9ae3bdf1649064c91e80a4d541f9b9.tar.gz
drakx-fdb11d4baf9ae3bdf1649064c91e80a4d541f9b9.tar.bz2
drakx-fdb11d4baf9ae3bdf1649064c91e80a4d541f9b9.tar.xz
drakx-fdb11d4baf9ae3bdf1649064c91e80a4d541f9b9.zip
add a less scary dual boot warning
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 4634bc927..e91187515 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -76,9 +76,16 @@ function welcome()
function install_warning()
{
+ if [ -n "${win32_part_dev}" ]; then
+ warn_msg="Windows installation detected.\nWe will set it up as dual boot. \
+You may lose some data.\nPlease backup before proceeding."
+ else
+ warn_msg="WARNING: This process will erase all data in this machine, \
+do you want to continue?"
+ fi
+
clear
- _yesno "\nWARNING: This process will erase all data in this machine, \
-do you want to continue?\n "
+ _yesno "\n$warn_msg\n"
if [ "$?" != "0" ]; then
_shutdown
fi