| commit | d6c687b0cd889261dd96a8fe4b53d07e7daaa7d9 | [log] [tgz] |
|---|---|---|
| author | Mike Frysinger <[email protected]> | Wed Sep 07 20:45:48 2016 |
| committer | ChromeOS Commit Bot <[email protected]> | Fri Feb 02 04:09:53 2018 |
| tree | 9d0f3ce35ce125f4b5ce7896d95b342930b9a195 | |
| parent | 79dcfc138e0a37e269e907e471892c6fe72fe8eb [diff] |
cgpt: add support for managing the legacy boot gpt bit Bit 2 in the GPT partition attributes has been allocated as the legacy bios boot (equivalent to the "active" or "boot" flag in MBR). If we try to boot images on newer x86 systems, syslinux dies because it can't find any GPT partition marked bootable. Update the various parts of cgpt add & show to manage this bit. Now we can run: cgpt add -i 12 -B 1 chromiumos_image.bin And the EFI partition will be marked bootable. BUG=chromium:644845 TEST=vboot_reference unittests pass TEST=booted an amd64-generic disk image via USB on a generic laptop BRANCH=None Change-Id: I78e17b8df5b0c61e9e2d8a3c703e6d5ad230fe92 Reviewed-on: https://chromium-review.googlesource.com/382411 Commit-Ready: Mike Frysinger <[email protected]> Tested-by: Mike Frysinger <[email protected]> Reviewed-by: Randall Spangler <[email protected]> Reviewed-on: https://chromium-review.googlesource.com/897390 Reviewed-by: Mike Frysinger <[email protected]> Commit-Queue: Wei-Han Chen <[email protected]> Tested-by: Wei-Han Chen <[email protected]>