From: Silvio Rhatto Date: Tue, 25 Jan 2022 12:37:09 +0000 (-0300) Subject: Fix: provision: use $uefi_grub_end on $lvm_start for UEFI mode X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f79d56fd47fc653ac4a77cee5d6e9083e427826d;p=hydra.git Fix: provision: use $uefi_grub_end on $lvm_start for UEFI mode --- diff --git a/share/hydractl/provision b/share/hydractl/provision index 5efd56f..129acc0 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -305,8 +305,12 @@ else if [ "$encrypt" == "y" ]; then # Second partition must also be aligned by a multiple of $optimal_sector_size # So we find the minimum optimal start sector which is after the grub partition - #lvm_start="$(($bios_grub_end + 1))" - lvm_start="`partition_sector_start $start $bios_grub_end $optimal_sector_size`" + if [ "$boot_mode" == "bios" ]; then + #lvm_start="$(($bios_grub_end + 1))" + lvm_start="`partition_sector_start $start $bios_grub_end $optimal_sector_size`" + else + lvm_start="`partition_sector_start $start $uefi_grub_end $optimal_sector_size`" + fi #hydra_sudo_run parted -s -- $device unit MB mkpart ext2 3 -1 hydra_sudo_run parted -s -- $device mkpart ext2 ${lvm_start}s -1