aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-12 13:16:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-12 13:16:06 -0300
commit5312bf527f6bd256cd7c3bd948a722a6e7b06112 (patch)
tree68edd7e2128198223f60ba32c636c39a8e80e85d
parente2ed854f9213e63345522a1891098d2e3b6fee03 (diff)
downloadhydra-5312bf527f6bd256cd7c3bd948a722a6e7b06112.tar.gz
hydra-5312bf527f6bd256cd7c3bd948a722a6e7b06112.tar.bz2
Provision: fix boot_size calculation
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 50c689a..b57006b 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -237,8 +237,9 @@ else
else
# Make a 200MB boot partition
#boot_start="$(($bios_grub_end + 1))"
+ boot_size="200"
boot_start="`partition_sector_start $start $bios_grub_end $optimal_sector_size`"
- boot_size="$((200*megabyte/$block_size))"
+ boot_size="$(($boot_size * $megabyte / $block_size))"
boot_end="$(($boot_start + $boot_size -1))"
#lvm_start="$($boot_end + 1))"
lvm_start="`partition_sector_start $start $boot_end $optimal_sector_size`"