From 97117a9d97ef6d39d7b4c2aea95eb4773a46de21 Mon Sep 17 00:00:00 2001 From: Tan Gao Date: Tue, 3 Aug 2010 17:01:25 -0700 Subject: [PATCH] remove obsolete arg kern_img from install_gpt() call Change-Id: I62a7e85f098327404f52752d85450ff24f2a7e78 Review URL: http://codereview.chromium.org/3014050 --- build_gpt.sh | 2 +- image_to_vm.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 \