From 887a8d1df4c4bab636023d2fd4f6ac3592318574 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 1 Aug 2009 18:36:47 +0200 Subject: simplify FS asking in autoprepare + write datafiles first, then ask for confirmation --- src/core/libs/lib-ui-interactive.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 8c0316f..48b4866 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -276,15 +276,8 @@ interactive_autoprepare() ask_yesno "$(($BLOCKDEVICE_SIZE-$ROOT_PART_SIZE)) MiB will be used for your /home partition. Is this OK?" yes && ROOT_PART_SET=1 #TODO: when doing yes, cli mode prints option JFS all the time, dia mode goes back to disks menu done - CHOSEN_FS="" - while [ "$CHOSEN_FS" = "" ] - do - ask_option no 'Filesystem selection' "Select a filesystem for / and /home:" required $FSOPTS || return 1 - FSTYPE=$ANSWER_OPTION - ask_yesno "$FSTYPE will be used for / and /home. Is this OK?" yes && CHOSEN_FS=1 - done - - ask_yesno "$DISC will be COMPLETELY ERASED! Are you absolutely sure?" || return 1 + ask_option no 'Filesystem selection' "Select a filesystem for / and /home:" required $FSOPTS || return 1 + FSTYPE=$ANSWER_OPTION echo "$DISC $BOOT_PART_SIZE:ext2:+ $SWAP_PART_SIZE:swap $ROOT_PART_SIZE:$FSTYPE *:$FSTYPE" > $TMP_PARTITIONS @@ -294,6 +287,8 @@ interactive_autoprepare() echo "${DISC}3 raw no_label $FSTYPE;yes;/;target;no_opts;no_label;no_params" >> $TMP_BLOCKDEVICES echo "${DISC}4 raw no_label $FSTYPE;yes;/home;target;no_opts;no_label;no_params" >> $TMP_BLOCKDEVICES + ask_yesno "$DISC will be COMPLETELY ERASED! Are you absolutely sure?" || return 1 + process_disks || die_error "Something went wrong while partitioning" if ! process_filesystems -- cgit v1.2.3-54-g00ecf