diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-01-25 09:37:09 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-01-25 09:37:09 -0300 |
commit | f79d56fd47fc653ac4a77cee5d6e9083e427826d (patch) | |
tree | 388c94027d17c527c7942ee4ad5d5e4a14d42e68 /share | |
parent | 8bb486fa6332da85fceabb8eb4a60d17e64d91d3 (diff) | |
download | hydra-f79d56fd47fc653ac4a77cee5d6e9083e427826d.tar.gz hydra-f79d56fd47fc653ac4a77cee5d6e9083e427826d.tar.bz2 |
Fix: provision: use $uefi_grub_end on $lvm_start for UEFI mode
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/provision | 8 |
1 files changed, 6 insertions, 2 deletions
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 |