mirror of
https://gitlab.com/prism7/archery.git
synced 2025-02-15 08:29:17 +01:00
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:
37
Amelia.sh
37
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
|
||||
|
Reference in New Issue
Block a user