From b62037d9ccbdb732d22f29e399f093baabaca1fc Mon Sep 17 00:00:00 2001 From: elementrick Date: Fri, 19 Jul 2024 16:58:25 +0000 Subject: [PATCH] Change: 'Smart/Automatic Partitioning' > When 'Revising' installation, now the installer will present you with the current partitioning layout and ask to proceed or not. If not, the installer will automatically take all necessary actions for completion. --- Amelia.sh | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) 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