Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: src/platform/installer/chromeos-install

Issue 1513019: Create EFI System Partition on USB image during build. (Closed)
Patch Set: Cleanup, add image_to_vmware.sh changes Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/installer/chromeos-common.sh ('k') | src/scripts/build_gpt.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/installer/chromeos-install
diff --git a/src/platform/installer/chromeos-install b/src/platform/installer/chromeos-install
index 2603a4dad2a77d73c0145223af9d70f735188976..0b96da92c6b1c1bb54069cd4a43073f03e6cca18 100755
--- a/src/platform/installer/chromeos-install
+++ b/src/platform/installer/chromeos-install
@@ -183,13 +183,14 @@ install_rootfs() {
STATEFUL_IMG=${SRC}1
KERNEL_IMG=${SRC}2
ROOTFS_IMG=${SRC}3
+ESP_IMG=${SRC}4
# Steal the PMBR code from the source MBR to put on the dest MBR, for booting
# on legacy-BIOS devices.
sudo dd if=$SRC of=$PMBRCODE bs=512 count=1
# Create the GPT.
-install_gpt $FLAGS_dst $ROOTFS_IMG $KERNEL_IMG $STATEFUL_IMG $PMBRCODE
+install_gpt $FLAGS_dst $ROOTFS_IMG $KERNEL_IMG $STATEFUL_IMG $PMBRCODE $ESP_IMG
if [ "$FLAGS_skip_rootfs" -eq "$FLAGS_TRUE" ]; then
echo Done installing partitons.
@@ -207,6 +208,9 @@ echo "Copying rootfs..."
install_rootfs ${ROOTFS_IMG} ${FLAGS_dst} ${START_ROOTFS_A} "H-ROOT-A"
install_rootfs ${ROOTFS_IMG} ${FLAGS_dst} ${START_ROOTFS_B} "H-ROOT-B"
+echo "Copying ESP..."
+sudo dd if=${ESP_IMG} of=${DST} conv=notrunc bs=512 seek=${START_ESP}
+
# We can't guarantee that the kernel will see the new partition table, so we
# can't use it directly. We could force the kernel to reload it with an ioctl,
# but then we might have the UI mounting and displaying any old filesystems
« no previous file with comments | « src/platform/installer/chromeos-common.sh ('k') | src/scripts/build_gpt.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698