cgpt: Add cgpt legacy parameter to set primary GPT signature to IGNOREME
authorJulius Werner <jwerner@chromium.org>
Wed, 20 Apr 2016 20:05:53 +0000 (13:05 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Mon, 25 Apr 2016 22:15:32 +0000 (15:15 -0700)
commit8228f47dfd24448a4c959c93d064a0887c4762d1
treeba1564a8e37c18bc1695133bb05e3e742fc0c1b7
parent39910d062dffcd16683e0626dac1e7064991c7e5
cgpt: Add cgpt legacy parameter to set primary GPT signature to IGNOREME

Now that we have support for the IGNOREME signature in cgpt, we need a
way to set it on an existing disk. The easiest option is to shoehorn
this into the cgpt legacy command, because that's already made to modify
GPT header signatures (really, it would be nice to rename it to cgpt
signature or something, but let's not break existing uses for now).

BRANCH=None
BUG=chrome-os-partner:52595
TEST=unit tests

Change-Id: If2835fec28a9c39373abd050e2e057f73e5ec700
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/340073
Reviewed-by: Nam Nguyen <namnguyen@google.com>
cgpt/cgpt_legacy.c
cgpt/cmd_legacy.c
host/include/cgpt_params.h
tests/run_cgpt_tests.sh