From fdb11d4baf9ae3bdf1649064c91e80a4d541f9b9 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 11 Feb 2009 15:37:35 +0000 Subject: add a less scary dual boot warning --- rescue/restore-image.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'rescue') 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 -- cgit v1.2.1