From c61366cedaeca5b4048b3442e74d8f7cf312fd17 Mon Sep 17 00:00:00 2001 From: Jane Doe Date: Mon, 17 Jun 2024 14:25:08 +0000 Subject: [PATCH] Changed ESP's minimum size limit to 200M from 300M at 'Sanity Check' stage --- Amelia.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Amelia.sh b/Amelia.sh index 543c5fa..28cda7b 100644 --- a/Amelia.sh +++ b/Amelia.sh @@ -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 "