On Tue, Sep 12, 2023 at 06:33:34PM +0200, Martin Husemann wrote: > > Right, it is bad design. Re-parsing the GPT in raidframe code seems wrong > > too. Shall I modify struct dkwedge_info to add an union for the underlying > > partition entry? That way, we can look for specific detail such as a > > bootme flag. > > You mean the struct gpt_ent?
i mean something like this: union { struct gpt_ent gpt; struct disklabel disklabel; struct mbr mbr; struct apple_part_map_entry apm; (...) } part_entry; > But Michaels question is a good one - why can't the bootloader deal > with all this and pass e.g. the start offset of the root partition > via (optional) boot params? I will have a look at that, but I am not sure how it works with multiboot. -- Emmanuel Dreyfus m...@netbsd.org