diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-21 20:36:04 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-21 20:36:04 +0100 |
commit | 6b367253b892737547049e8b7791095e957c4490 (patch) | |
tree | cce962a2d0dd333519846d009844eaf8719dcbe1 /src/core | |
parent | 0a16fab12a9091fe834321fc8ce5103749a46e39 (diff) |
moved function
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 3d701eb..e13a952 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -17,33 +17,6 @@ check_depend () } -interactive_partition() { - target_umountall - - # Select disk to partition - DISCS=$(finddisks _) - DISCS="$DISCS OTHER - DONE +" - notify "Available Disks:\n\n$(_getavaildisks)\n" - DISC="" - while true; do - # Prompt the user with a list of known disks - ask_option no "Select the disk you want to partition (select DONE when finished)" $DISCS || return 1 - DISC=$ANSWER_OPTION - if [ "$DISC" = "OTHER" ]; then - _dia_DIALOG --inputbox "Enter the full path to the device you wish to partition" 8 65 "/dev/sda" 2>$ANSWER || return 1 - DISC=$(cat $ANSWER) - fi - # Leave our loop if the user is done partitioning - [ "$DISC" = "DONE" ] && break - # Partition disc - notify "Now you'll be put into the cfdisk program where you can partition your hard drive. You should make a swap partition and as many data partitions as you will need.\ - NOTE: cfdisk may tell you to reboot after creating partitions. If you need to reboot, just re-enter this install program, skip this step and go on to step 2." - cfdisk $DISC - done - return 0 -} - - interactive_configure_system() { [ "$EDITOR" ] || interactive_get_editor @@ -227,6 +200,33 @@ interactive_autoprepare() } +interactive_partition() { + target_umountall + + # Select disk to partition + DISCS=$(finddisks _) + DISCS="$DISCS OTHER - DONE +" + notify "Available Disks:\n\n$(_getavaildisks)\n" + DISC="" + while true; do + # Prompt the user with a list of known disks + ask_option no "Select the disk you want to partition (select DONE when finished)" $DISCS || return 1 + DISC=$ANSWER_OPTION + if [ "$DISC" = "OTHER" ]; then + _dia_DIALOG --inputbox "Enter the full path to the device you wish to partition" 8 65 "/dev/sda" 2>$ANSWER || return 1 + DISC=$(cat $ANSWER) + fi + # Leave our loop if the user is done partitioning + [ "$DISC" = "DONE" ] && break + # Partition disc + notify "Now you'll be put into the cfdisk program where you can partition your hard drive. You should make a swap partition and as many data partitions as you will need.\ + NOTE: cfdisk may tell you to reboot after creating partitions. If you need to reboot, just re-enter this install program, skip this step and go on to step 2." + cfdisk $DISC + done + return 0 +} + + interactive_mountpoints() { while [ "$PARTFINISH" != "DONE" ]; do : >$TMP_FSTAB |