| Index: image_to_vm.sh
|
| diff --git a/image_to_vm.sh b/image_to_vm.sh
|
| index ac8f648c991c04dd38a50c536078b52c53c0d957..f1b977705b23449c58e9e6af27a65b07d2311797 100755
|
| --- a/image_to_vm.sh
|
| +++ b/image_to_vm.sh
|
| @@ -229,8 +229,9 @@ 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_STATE}" \
|
| - "${TEMP_PMBR}" "${TEMP_ESP}" false ${FLAGS_rootfs_partition_size}
|
| +install_gpt "${TEMP_IMG}" "$(numsectors $TEMP_ROOTFS)" \
|
| + "$(numsectors $TEMP_STATE)" "${TEMP_PMBR}" "$(numsectors $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 \
|
| seek="${START_ROOTFS_A}"
|
|
|