]> gitweb.fluxo.info Git - hydra.git/commitdiff
Provision: fix boot_size calculation
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 12 May 2019 16:16:06 +0000 (13:16 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 12 May 2019 16:16:06 +0000 (13:16 -0300)
share/hydractl/provision

index 50c689ab9355ab9dd6d88f030bc566dfd3bb00e1..b57006b11bb4c13b45bf4e311f27d71dcce27b81 100755 (executable)
@@ -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`"