| 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
|
|
|