mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 00:21:46 +00:00
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>
This commit is contained in:
committed by
chrome-bot
parent
39910d062d
commit
8228f47dfd
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user