tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GPT attributes in dkwedge [PATCH]



On Mon, Sep 18, 2023 at 10:41:56PM -0000, Michael van Elst wrote:
> So in many cases bootme marks the root partition. It is rarely 
> used on the EFI partition, but that's also a possibility.

I guess it comes down to what bootselector your setup is for.

IMO the ideal setup is for all possilble boot scenarios to have a proper
UEFI boot option configured, which for NetBSD boils down to having a
sepearate directory on the ESP for a copy of the bootloader and boot.cfg.

That way you can use the firmware boot selector menu and don't interfere with
other setups on the same hardware.

You can do all magic you want that way in the per boot option boot.cfg.

If you use some other boot loader (grub? whatever), you have to use whatever
it provides to mark the proper partitions to load the kernel from and pass
whatever args to specify the root disk.

In the setup that started this quest there is no boot selector involved and
no boot option configured. The raidframe default of first inner gpt partition
of the raid booted from would have worked in the standard setup (ESP on both
components of the raid, followed by a raid partition, the inner GPT starting
with / and swap, followed by whatever other partitions wanted).

Sysinst changes to support this as a direct install target upcoming, it
actually is quite easy (as this setup is in some kind similar to the MBR
outer partitions and disklabel inner ones, which sysinst can deal with
already).

Martin


Home | Main Index | Thread Index | Old Index