Add 'prioritize' command to cgpt tool.

This lets us reorder the priority of all the kernel partitions with a single
command, instead of a bunch of complicated and error-prone shell script
logic.

Change-Id: I21d39763ec5a748488d5319a987bcfe7c34ce4d0

BUG=chromium-os:9167
TEST=manual

In the chroot, do this:

cd ~/trunk/src/platform/vboot_reference
make
make runtests
make clean

Everything should pass.

Review URL: http://codereview.chromium.org/5352005
This commit is contained in:
Bill Richardson
2010-11-29 14:24:51 -08:00
parent 5f500b19ba
commit 3430b32667
12 changed files with 519 additions and 41 deletions

View File

@@ -62,10 +62,6 @@ typedef struct {
#define GUID_EXPECTED_SIZE GUID_SIZE
/* Some constant values */
extern const Guid guid_unused;
extern const Guid guid_chromeos_kernel;
/* GPT header defines how many partitions exist on a drive and sectors managed.
* For every drive device, there are 2 headers, primary and secondary.
* Most of fields are duplicated except my_lba and entries_lba.