Merge pull request #100 from gregkh/efi_kernel

feat(update_bootloaders.sh) add UEFI boot support
This commit is contained in:
Brandon Philips 2013-08-29 08:17:43 -07:00
commit 28a049b288

View File

@ -114,6 +114,11 @@ if [[ "${FLAGS_arch}" = "x86" || "${FLAGS_arch}" = "amd64" ]]; then
sudo cp -f "${FLAGS_vmlinuz}" "${ESP_FS_DIR}"/syslinux/vmlinuz.A sudo cp -f "${FLAGS_vmlinuz}" "${ESP_FS_DIR}"/syslinux/vmlinuz.A
sudo cp -f "${FLAGS_vmlinuz}" "${ESP_FS_DIR}"/syslinux/vmlinuz.B sudo cp -f "${FLAGS_vmlinuz}" "${ESP_FS_DIR}"/syslinux/vmlinuz.B
# create the EFI directory tree as a fall-back for UEFI builds and put a copy
# of the kernel in there.
sudo mkdir -p "${ESP_FS_DIR}"/EFI/boot
sudo cp -f "${FLAGS_vmlinuz}" "${ESP_FS_DIR}"/EFI/boot/bootx64.efi
# Extract kernel flags # Extract kernel flags
kernel_cfg="cros_debug" kernel_cfg="cros_debug"
old_root="%U+1" old_root="%U+1"