From e2e9f90c0614b1eafa42f8e632e27a0e3b4ea625 Mon Sep 17 00:00:00 2001 From: funk-on-code <113871227+funk-on-code@users.noreply.github.com> Date: Mon, 19 Sep 2022 06:17:39 +0000 Subject: [PATCH] Fix the ESP partition so it is actually created. On: - Live hardware. - a QEMU VM and a VMware ESX VM Upstream does not create a valid ESP bootable partition when a bootloader already exists. Adding the correct sector size (-s 2) for the partition size corrects this issue. Signed-off-by: funk-on-code <113871227+funk-on-code@users.noreply.github.com> --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index f506900..5637d54 100755 --- a/install.sh +++ b/install.sh @@ -83,9 +83,9 @@ fi echo "Creating new partition scheme on $DISK." parted -s "$DISK" \ mklabel gpt \ - mkpart ESP fat32 1MiB 101MiB \ + mkpart ESP fat32 1MiB 128MiB \ set 1 esp on \ - mkpart cryptroot 101MiB 100% \ + mkpart cryptroot 128MiB 100% \ sleep 0.1 ESP="/dev/$(lsblk $DISK -o NAME,PARTLABEL | grep ESP| cut -d " " -f1 | cut -c7-)" @@ -97,7 +97,7 @@ partprobe "$DISK" # Formatting the ESP as FAT32. echo "Formatting the EFI Partition as FAT32." -mkfs.fat -F 32 $ESP &>/dev/null +mkfs.fat -s 2 -F 32 $ESP &>/dev/null # Creating a LUKS Container for the root partition. echo "Creating LUKS Container for the root partition."