From 9c5e5ecad3a449e210fd7a210e7bdb16be5b4216 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 14 May 2010 17:00:21 -0700 Subject: [PATCH] Use new grub2 variables to boot from the device with the bootloader See http://codereview.chromium.org/2113004/show for details. This also adds a script to allow manual selection of the preferred image (A or B). BUG=none Review URL: http://codereview.chromium.org/2090006 --- build_image | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/build_image b/build_image index 2f418bf865..334de6348e 100755 --- a/build_image +++ b/build_image @@ -331,25 +331,18 @@ sudo mount "${ESP_LOOP_DEV}" "${ESP_DIR}" sudo mkdir -p "${ESP_DIR}/efi/boot" sudo grub-mkimage -p /efi/boot -o "${ESP_DIR}/efi/boot/bootx64.efi" \ part_gpt fat ext2 normal boot sh chain configfile linux -sudo cp "${ROOT_FS_DIR}/boot/vmlinuz" "${ESP_DIR}/efi/boot/vmlinuz" -cat <