Changed ESP's minimum size limit to 200M from 300M at 'Sanity Check' stage

This commit is contained in:
Jane Doe 2024-06-17 14:25:08 +00:00
parent 2d62d97674
commit c61366ceda

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Amelia Installer # Amelia Installer
# Version: 5.5 # Version: 5.6
set -euo pipefail set -euo pipefail
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
@ -2684,12 +2684,12 @@ ${multi_boot}
if [[ "${autoboot}" == "y" ]]; then if [[ "${autoboot}" == "y" ]]; then
boot_dev="${boot_comply}" boot_dev="${boot_comply}"
bootsize="$(lsblk -b "${boot_dev}" --noheadings --output=size)" bootsize="$(lsblk -b "${boot_dev}" --noheadings --output=size)"
if [[ "${bootsize}" -lt "314572800" ]]; then if [[ "${bootsize}" -lt "209715200" ]]; then
sanity="no" sanity="no"
sleep 0.3 sleep 0.3
RED " RED "
[!] WARNING: EFI Partition's size is not adequate. Create a ${nc}300 M ${red}EFI Partition at minimum " [!] WARNING: EFI Partition's size is not adequate. Create a ${nc}200 M ${red}EFI Partition at minimum "
sleep 3 sleep 3
RED " RED "
@ -2847,12 +2847,12 @@ ${multi_swap}
until disk_mngr; do : ; done until disk_mngr; do : ; done
return 0 return 0
elif [[ ! -e "${root_dev}" && -e "${boot_dev}" ]]; then elif [[ ! -e "${root_dev}" && -e "${boot_dev}" ]]; then
if [[ "${bootsize}" -lt "314572800" ]]; then if [[ "${bootsize}" -lt "209715200" ]]; then
sanity="no" sanity="no"
sleep 0.3 sleep 0.3
RED " RED "
[!] WARNING: EFI Partition's size is not adequate. Create a ${nc}300 M ${red}EFI Partition at minimum " [!] WARNING: EFI Partition's size is not adequate. Create a ${nc}200 M ${red}EFI Partition at minimum "
sleep 3 sleep 3
RED " RED "
@ -2911,12 +2911,12 @@ ${multi_swap}
until disk_mngr; do : ; done until disk_mngr; do : ; done
return 0 return 0
elif [[ -e "${root_dev}" && -e "${boot_dev}" ]]; then elif [[ -e "${root_dev}" && -e "${boot_dev}" ]]; then
if [[ "${bootsize}" -lt "314572800" ]]; then if [[ "${bootsize}" -lt "209715200" ]]; then
sanity="no" sanity="no"
sleep 0.3 sleep 0.3
RED " RED "
[!] WARNING: EFI Partition's size is not adequate. Create a ${nc}300 M ${red}EFI Partition at minimum " [!] WARNING: EFI Partition's size is not adequate. Create a ${nc}200 M ${red}EFI Partition at minimum "
sleep 3 sleep 3
RED " RED "