summaryrefslogtreecommitdiff
path: root/cgpt/cgpt_show.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgpt/cgpt_show.c')
-rw-r--r--cgpt/cgpt_show.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cgpt/cgpt_show.c b/cgpt/cgpt_show.c
index cd4a6136..60d73ec7 100644
--- a/cgpt/cgpt_show.c
+++ b/cgpt/cgpt_show.c
@@ -136,9 +136,9 @@ void EntryDetails(GptEntry *entry, uint32_t index, int raw) {
priority, tries, successful);
}
- if (entry->attrs.fields.system) {
+ if (entry->attrs.fields.required) {
clen += snprintf(contents + clen, sizeof(contents) - clen,
- "system=%d ", entry->attrs.fields.system);
+ "required=%d ", entry->attrs.fields.required);
require(clen < sizeof(contents));
}
@@ -230,6 +230,9 @@ static int GptShow(struct drive *drive, CgptShowParams *params) {
case 'P':
printf("%d\n", GetPriority(drive, ANY_VALID, index));
break;
+ case 'R':
+ printf("%d\n", GetRequired(drive, ANY_VALID, index));
+ break;
case 'B':
printf("%d\n", GetLegacyBoot(drive, ANY_VALID, index));
break;