diff --git a/Amelia.sh b/Amelia.sh index 1c90875..b6a73a7 100644 --- a/Amelia.sh +++ b/Amelia.sh @@ -3097,6 +3097,41 @@ ${multi_swap} NC " ==> [${green}Disk ${sgdrive} Auto-Partitioned OK${nc}] " + sleep 0.3 + YELLOW " + + +###------------------------------------------------[ DISK OVERVIEW ]------------------------------------------------### + + " + fdisk -l "${instl_drive}" | grep -E --color=no 'Dev|dev' |GREP_COLORS='mt=01;36' grep -E --color=always 'EFI System|$'|GREP_COLORS='mt=01;32' grep -E --color=always 'Linux root|$'|GREP_COLORS='mt=01;35' grep -E --color=always 'Linux home|$'|GREP_COLORS='mt=01;33' grep -E --color=always 'Linux swap|$' + YELLOW " + +###-----------------------------------------------------------------------------------------------------------------### " + BLUE " + + + > Proceed with the current partitioning layout ? [y/n]${nc} + " + read -r -p " +==> " partok + + local prompt="Confirm Disk" + local stage_prompt="Partitioning" + if [[ "${partok}" == "y" ]]; then + ok + elif [[ "${partok}" == "n" ]]; then + if [[ "${manpart}" == "yes" ]]; then + stage_fail + else + reload + until disk_mngr; do : ; done + return 0 + fi + else + invalid + return 1 + fi else ok sleep 0.3 @@ -3113,7 +3148,7 @@ ${multi_swap} BLUE " - > Proceed ? [y/n]${nc} + > Proceed with the current partitioning layout ? [y/n]${nc} " read -r -p " ==> " partok