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.

This commit is contained in:
elementrick 2024-07-19 16:58:25 +00:00
parent 8c502a7ca0
commit b62037d9cc

View file

@ -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