On Mon, Sep 25, 2023 at 05:57:49AM +0000, Emmanuel Dreyfus wrote: > On Mon, Sep 25, 2023 at 12:20:00PM +0700, Robert Elz wrote: > [bootme flag] > > I'd always assumed it to be where efiboot should locate boot.cfg. > > Where the kernel and root filesystems are located are in boot.cfg. > > Bootme tels bootstrap where to look root partition. bootme.cfg is > searched in EFI paririon /EFI/NetBSD/boot.cfg and root partition /boot.cfg.
Boot partition and Root partition are something separate, even when the default root partition is the same as the boot partition. For EFI boot, the boot partition is where boot.cfg is searched and where the kernel is loaded from, unless you specify something else to the bootloader (e.g. in boot.cg). Where the kernel is loaded from is passed to the kernel. The kernel will use the informatiun to find the root partition, unless you specify something else (or magic like the raidframe hack comes into play). So, the bootme flag effectively specifies the root partition, but only by virtue of defaults being passed down the chain. The kernel should not outguess things and interpret the flag itself. -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."