On Mon, Sep 25, 2023 at 10:43:56AM +0200, Edgar Fuß wrote: > > boot[].cfg is > searched in EFI par[tit]ion /EFI/NetBSD/boot.cfg > > and root partition /boot.cfg. > But how can EFI locate it on the root partition if it tells where the root > partition lives?
Not EFI, but the bootloader. It guesses a partition where /netbsd is and checks /boot.cfg the same way. The bootme flag is a strong hint in that guessing step. This has been carried over from the BIOS boot loader, where this was the only supported location for /boot.cfg (as it has no ESP). Martin