diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-02-11 15:32:14 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-02-11 15:32:14 +0000 |
commit | aff17513b052c6edfdc548bfe72cfb8ece866244 (patch) | |
tree | 4bb63bf8d558184fa4dc2a62baee2025006ae930 /rescue/restore-image.sh | |
parent | 40aba93d472f4e2acd157623b9c2aafd92e084dc (diff) | |
download | drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.tar drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.tar.gz drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.tar.bz2 drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.tar.xz drakx-aff17513b052c6edfdc548bfe72cfb8ece866244.zip |
detect device before install warning
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 7 |
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 |