On Mon, 25 Sep 2023, Robert Elz wrote:

   Date:        Mon, 25 Sep 2023 05:57:49 +0000
   From:        Emmanuel Dreyfus <m...@netbsd.org>
   Message-ID:  <zrehxtjxv3gwm...@homeworld.netbsd.org>

 | bootme.cfg is searched in EFI paririon /EFI/NetBSD/boot.cfg

Which EFI partition?   I think I have about 5 or 6, sprinkled around
various bootable devices (more than one on some).   None of them (boot.cfg
files) are used.


The first EFI partition. Without a bootme etc., flag, the NetBSD
UEFI bootloader tries to read /EFI/NetBSD/boot.cfg from there,
first. Then it tries to read it from the first NetBSD partition
in the EFI table.

I've hacked my bootloader locally to make it try a /EFI/NetBSD/boot.cfg
on the partition where it itself was loaded from: this is for 2
reasons:

1. I like separate NetBSD EFI partitions for 9.x, 10.x, -HEAD etc.,
   and want each to read its own boot.cfg.

2. Some commands are subtly different between 9.x and 10.x. Eg.

```
gop=0
```

on its own line will work with a 9.x bootloader. But the 10.x
bootloader needs a `gop 0' in a `menu=' entry to have the same effect.

-RVP

Reply via email to