From: Silvio Rhatto Date: Sun, 12 May 2019 16:16:06 +0000 (-0300) Subject: Provision: fix boot_size calculation X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5312bf527f6bd256cd7c3bd948a722a6e7b06112;p=hydra.git Provision: fix boot_size calculation --- 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`"