build_image: add temporary hack to fix syslinux building.

Will Drewry is working on the proper fix, but this unblocks people who
build images that boot w/ syslinux.

Review URL: http://codereview.chromium.org/3009003
This commit is contained in:
Andrew de los Reyes 2010-07-15 22:10:47 -07:00
parent 21d93ccac3
commit 3172b7e296

View File

@ -351,6 +351,9 @@ make_image_bootable() {
bootloader_to="${OUTPUT_DIR}/arm.mbr"
fi
# Temporary hack to fix syslinux building:
sudo umount ${ESP_FS_DIR}
# Update partition 12 / legacy bootloaders and arm.
${SCRIPTS_DIR}/update_bootloaders.sh \
--arch=${ARCH} \
@ -367,8 +370,11 @@ make_image_bootable() {
fi
trap - EXIT
# Temporary hack to fix syslinux building, comment out -e ${ESP_FS_DIR}
# ${SCRIPTS_DIR}/mount_gpt_image.sh -u -r "${ROOT_FS_DIR}" \
# -s "${STATEFUL_FS_DIR}" -e "${ESP_FS_DIR}"
${SCRIPTS_DIR}/mount_gpt_image.sh -u -r "${ROOT_FS_DIR}" \
-s "${STATEFUL_FS_DIR}" -e "${ESP_FS_DIR}"
-s "${STATEFUL_FS_DIR}"
}
# Modifies an existing image to add development packages