> > + coff_header = &(pe->coff_header); > > + section_offset = dos->pe_image_header_offset + sizeof (*pe); > > + > > + for (int i = 0; i < coff_header->num_sections; i++) > > + { > > + char *val; > > + char *key; > > I don't quite understand this. So every section found in the PE becomes a > key/val pair for this GRUB menu option? It seems like you would not want to > do that for non-UKI related sections (like data, reloc sections, etc).
There is a '.osrel' which is formated like /etc/os-release and can be used to create pretty and descriptive menu titles. So, yes, this should only try to parse sections which are expected to be in this format. take care, Gerd _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel