diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2012-08-23 15:06:25 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-09-19 15:33:30 -0700 |
commit | b7b865cfee68190babd971ab9a897bdabbab075f (patch) | |
tree | 8ad900ddff6a69f9a65cd0507857a6da2677592f /cgpt/cgpt.c | |
parent | 40d8651bb36048c9b5f07be97ff17b2cf503015e (diff) | |
download | vboot-b7b865cfee68190babd971ab9a897bdabbab075f.tar.gz |
Support alternative GPT header signature
In order to dual boot Windows and ChromeOS, Windows must
not find a GPT partition table on the disk. So change
ChromeOS to cope with an alternative signature "CHROMEOS"
instead of the standard "EFI PART"
BUG=chrome-os-partner:6108
TEST=rebuild chromeos, install it,
run cgpt legacy /dev/sda
dd if=/dev/sda of=/tmp/x bs=1k
hexdump -C /tmp/X
see the string CHROMEOS
BRANCH=link
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Change-Id: Ia88eff33b9880bd73a78c1b8e026c1f8298c4557
Reviewed-on: https://gerrit.chromium.org/gerrit/31264
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Ready: Stefan Reinauer <reinauer@chromium.org>
Tested-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'cgpt/cgpt.c')
-rw-r--r-- | cgpt/cgpt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cgpt/cgpt.c b/cgpt/cgpt.c index e963142a..ac7aecdd 100644 --- a/cgpt/cgpt.c +++ b/cgpt/cgpt.c @@ -30,6 +30,7 @@ struct { {"find", cmd_find, "Locate a partition by its GUID"}, {"prioritize", cmd_prioritize, "Reorder the priority of all kernel partitions"}, + {"legacy", cmd_legacy, "Switch between GPT and Legacy GPT"}, }; void Usage(void) { |