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 25, 2023 at 05:57:49AM +0000, Emmanuel Dreyfus wrote:
> Bootme tels bootstrap where to look root partition. bootme.cfg is 
> searched in EFI paririon /EFI/NetBSD/boot.cfg  and root partition /boot.cfg. 

I would describe it differently:

 - firmware finds bootloader "somewhere" on some ESP, bootloader finds
   boot.cfg in the same directory (if it exists)
 - otherwise bootloader guesses a partition from where the kernel is
   loaded and also checks for a boot.cfg in the root directory of that
   partition. The bootme flag may be involved in this step (but is not
   required).
 - kernel gets passed the location where it was loaded from and optional
   other arguments if boot.cfg was found. kernel decides what to use
   as root partition. A /boot.cfg on this partition is not needed nor
   usefull unless it happens to be the same partition as where the kernel
   is loaded from (the item before) and there was none in the ESP
   directory (the first item).

Martin


Home | Main Index | Thread Index | Old Index