diff --git a/build_gpt.sh b/build_gpt.sh index daef59e321..8247f65c68 100755 --- a/build_gpt.sh +++ b/build_gpt.sh @@ -119,7 +119,7 @@ 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 $KERNEL_IMG $STATEFUL_IMG $PMBRCODE $ESP_IMG \ +install_gpt $OUTDEV $ROOTFS_IMG $STATEFUL_IMG $PMBRCODE $ESP_IMG \ false $FLAGS_rootfs_partition_size if [[ "$ARCH" = "arm" ]]; then diff --git a/image_to_vm.sh b/image_to_vm.sh index 48b52498ae..ac8f648c99 100755 --- a/image_to_vm.sh +++ b/image_to_vm.sh @@ -166,7 +166,6 @@ else sudo losetup -d "${STATEFUL_LOOP_DEV}" fi fi -TEMP_KERN="${TEMP_DIR}"/part_2 TEMP_PMBR="${TEMP_DIR}"/pmbr dd if="${SRC_IMAGE}" of="${TEMP_PMBR}" bs=512 count=1 @@ -230,7 +229,7 @@ sudo dd if=/dev/zero of="${TEMP_IMG}" bs=1 count=1 \ seek=$((${FLAGS_vdisk_size} * 1024 * 1024 - 1)) # Set up the partition table -install_gpt "${TEMP_IMG}" "${TEMP_ROOTFS}" "${TEMP_KERN}" "${TEMP_STATE}" \ +install_gpt "${TEMP_IMG}" "${TEMP_ROOTFS}" "${TEMP_STATE}" \ "${TEMP_PMBR}" "${TEMP_ESP}" false ${FLAGS_rootfs_partition_size} # Copy into the partition parts of the file dd if="${TEMP_ROOTFS}" of="${TEMP_IMG}" conv=notrunc bs=512 \