mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
remove obsolete arg kern_img from install_gpt() call
Change-Id: I62a7e85f098327404f52752d85450ff24f2a7e78 Review URL: http://codereview.chromium.org/3014050
This commit is contained in:
parent
9d4984388f
commit
97117a9d97
@ -119,7 +119,7 @@ fi
|
|||||||
|
|
||||||
# Create the GPT. This has the side-effect of setting some global vars
|
# Create the GPT. This has the side-effect of setting some global vars
|
||||||
# describing the partition table entries (see the comments in the source).
|
# 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
|
false $FLAGS_rootfs_partition_size
|
||||||
|
|
||||||
if [[ "$ARCH" = "arm" ]]; then
|
if [[ "$ARCH" = "arm" ]]; then
|
||||||
|
@ -166,7 +166,6 @@ else
|
|||||||
sudo losetup -d "${STATEFUL_LOOP_DEV}"
|
sudo losetup -d "${STATEFUL_LOOP_DEV}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
TEMP_KERN="${TEMP_DIR}"/part_2
|
|
||||||
TEMP_PMBR="${TEMP_DIR}"/pmbr
|
TEMP_PMBR="${TEMP_DIR}"/pmbr
|
||||||
dd if="${SRC_IMAGE}" of="${TEMP_PMBR}" bs=512 count=1
|
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))
|
seek=$((${FLAGS_vdisk_size} * 1024 * 1024 - 1))
|
||||||
|
|
||||||
# Set up the partition table
|
# 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}
|
"${TEMP_PMBR}" "${TEMP_ESP}" false ${FLAGS_rootfs_partition_size}
|
||||||
# Copy into the partition parts of the file
|
# Copy into the partition parts of the file
|
||||||
dd if="${TEMP_ROOTFS}" of="${TEMP_IMG}" conv=notrunc bs=512 \
|
dd if="${TEMP_ROOTFS}" of="${TEMP_IMG}" conv=notrunc bs=512 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user