diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-01-09 18:46:52 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-01-09 18:46:52 -0300 |
commit | e5349fdb8e1d22bce8d7e6d6e2e39574b6085e05 (patch) | |
tree | 17f90f8975687de4d8835eeaf4f0fde1fd2ac9d0 | |
parent | 5d51ad59b2f4c9520b98da6d2d5f4be1392d4c90 (diff) | |
download | hydra-e5349fdb8e1d22bce8d7e6d6e2e39574b6085e05.tar.gz hydra-e5349fdb8e1d22bce8d7e6d6e2e39574b6085e05.tar.bz2 |
Fix: hydractl: provision: check partitions' alignment
-rwxr-xr-x | share/hydractl/provision | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index c219a0f..e0fa248 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -270,7 +270,11 @@ else #quit #EOF - hydra_sudo_run parted -s -- $device set 1 bios_grub on + # Se GRUB flag + hydra_sudo_run parted -s -- $device set 1 bios_grub on + + # Check alignment + hydra_sudo_run parted -s -- $device align-check optimal 1 if [ "$encrypt" == "y" ]; then # Second partition must also be aligned by a multiple of $optimal_sector_size @@ -282,6 +286,9 @@ else hydra_sudo_run parted -s -- $device mkpart ext2 ${lvm_start}s -1 hydra_sudo_run parted -s -- $device set 2 lvm on + # Check alignment + hydra_sudo_run parted -s -- $device align-check optimal 2 + boot_device="${device}${partition_separator}2" syst_device="${device}${partition_separator}2" else @@ -299,6 +306,10 @@ else hydra_sudo_run parted -s -- $device mkpart ext2 ${lvm_start}s -1 hydra_sudo_run parted -s -- $device set 3 lvm on + # Check alignment + hydra_sudo_run parted -s -- $device align-check optimal 2 + hydra_sudo_run parted -s -- $device align-check optimal 3 + boot_device="${device}${partition_separator}2" syst_device="${device}${partition_separator}3" fi |