Index: build_gpt.sh |
diff --git a/build_gpt.sh b/build_gpt.sh |
index 8247f65c686e7735bd991ceb17587bf58da6bb8d..84888a902c1b4ff1f4f595c16cbe77e679cb2cf7 100755 |
--- a/build_gpt.sh |
+++ b/build_gpt.sh |
@@ -119,8 +119,8 @@ fi |
# Create the GPT. This has the side-effect of setting some global vars |
# describing the partition table entries (see the comments in the source). |
-install_gpt $OUTDEV $ROOTFS_IMG $STATEFUL_IMG $PMBRCODE $ESP_IMG \ |
- false $FLAGS_rootfs_partition_size |
+install_gpt $OUTDEV $(numsectors $ROOTFS_IMG) $(numsectors $STATEFUL_IMG) \ |
+ $PMBRCODE $(numsectors $ESP_IMG) false $FLAGS_rootfs_partition_size |
if [[ "$ARCH" = "arm" ]]; then |
# assume /dev/mmcblk1. we could not get this from ${OUTDEV} |