From aff17513b052c6edfdc548bfe72cfb8ece866244 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 11 Feb 2009 15:32:14 +0000 Subject: detect device before install warning --- rescue/restore-image.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rescue') diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 3886f0c77..4634bc927 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -209,7 +209,7 @@ w EOF } -function write_image() +function detect_device() { dialog --backtitle "$BACKTITLE" --title "$TITLE" --infobox "\nTrying to detect your root partition and disk...\n" 4 55 @@ -221,6 +221,10 @@ function write_image() root=$(detect_root) fi +} + +function write_image() +{ if [ -n "${win32_part_dev}" ]; then resize_win32 ${win32_part_dev} ${win32_part_type} ${win32_part_new_size} fi @@ -358,6 +362,7 @@ function expand_fs() # installation steps welcome read_config +detect_device install_warning write_image expand_fs -- cgit v1.2.1