Chromium Code Reviews| Index: cgpt/cmd_boot.c |
| diff --git a/cgpt/cmd_boot.c b/cgpt/cmd_boot.c |
| index 56ab1d580848e89d145e395148d7b153fa849314..669e9ae7dfc0b265acb7b7da7e163c6cf10368df 100644 |
| --- a/cgpt/cmd_boot.c |
| +++ b/cgpt/cmd_boot.c |
| @@ -132,7 +132,7 @@ int cmd_boot(int argc, char *argv[]) { |
| } |
| uint32_t index = partition - 1; |
| - GptEntry *entry = GetEntry(&drive.gpt, PRIMARY, index); |
| + GptEntry *entry = GetEntry(&drive.gpt, ANY_VALID, index); |
| memcpy(&drive.pmbr.boot_guid, &entry->unique, sizeof(Guid)); |
| } |