summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-11 15:32:14 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-11 15:32:14 +0000
commitaff17513b052c6edfdc548bfe72cfb8ece866244 (patch)
tree4bb63bf8d558184fa4dc2a62baee2025006ae930
parent40aba93d472f4e2acd157623b9c2aafd92e084dc (diff)
downloaddrakx-aff17513b052c6edfdc548bfe72cfb8ece866244.tar
drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.tar.gz
drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.tar.bz2
drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.tar.xz
drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.zip
detect device before install warning
-rwxr-xr-xrescue/restore-image.sh7
1 files changed, 6 insertions, 1 deletions
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