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
# Amelia Installer
# Version: 5.5
# Version: 5.6
set -euo pipefail
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
@ -2684,12 +2684,12 @@ ${multi_boot}
if [[ "${autoboot}" == "y" ]]; then
boot_dev="${boot_comply}"
bootsize="$(lsblk -b "${boot_dev}" --noheadings --output=size)"
if [[ "${bootsize}" -lt "314572800" ]]; then
if [[ "${bootsize}" -lt "209715200" ]]; then
sanity="no"
sleep 0.3
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
RED "
@ -2847,12 +2847,12 @@ ${multi_swap}
until disk_mngr; do : ; done
return 0
elif [[ ! -e "${root_dev}" && -e "${boot_dev}" ]]; then
if [[ "${bootsize}" -lt "314572800" ]]; then
if [[ "${bootsize}" -lt "209715200" ]]; then
sanity="no"
sleep 0.3
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
RED "
@ -2911,12 +2911,12 @@ ${multi_swap}
until disk_mngr; do : ; done
return 0
elif [[ -e "${root_dev}" && -e "${boot_dev}" ]]; then
if [[ "${bootsize}" -lt "314572800" ]]; then
if [[ "${bootsize}" -lt "209715200" ]]; then
sanity="no"
sleep 0.3
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
RED "