diff options
author | Julius Werner <jwerner@chromium.org> | 2016-04-20 13:05:53 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-25 15:15:32 -0700 |
commit | 8228f47dfd24448a4c959c93d064a0887c4762d1 (patch) | |
tree | ba1564a8e37c18bc1695133bb05e3e742fc0c1b7 /host | |
parent | 39910d062dffcd16683e0626dac1e7064991c7e5 (diff) | |
download | vboot-8228f47dfd24448a4c959c93d064a0887c4762d1.tar.gz |
cgpt: Add cgpt legacy parameter to set primary GPT signature to IGNOREMEstabilize-8249.B
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>
Diffstat (limited to 'host')
-rw-r--r-- | host/include/cgpt_params.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/host/include/cgpt_params.h b/host/include/cgpt_params.h index 97d89e6a..3f0a71bd 100644 --- a/host/include/cgpt_params.h +++ b/host/include/cgpt_params.h @@ -105,10 +105,16 @@ typedef struct CgptFindParams { CgptFindShowFn show_fn; } CgptFindParams; +enum { + CGPT_LEGACY_MODE_LEGACY = 0, + CGPT_LEGACY_MODE_EFIPART, + CGPT_LEGACY_MODE_IGNORE_PRIMARY, +}; + typedef struct CgptLegacyParams { char *drive_name; uint64_t drive_size; - int efipart; + int mode; } CgptLegacyParams; #endif // VBOOT_REFERENCE_CGPT_CGPT_PARAMS_H_ |