Tuesday, December 05, 2023

Re: efiboot: change default partition from hd0a

On Sat, 02 Dec 2023 11:53:25 +0900 (JST)
YASUOKA Masahiko <yasuoka@openbsd.org> wrote:
> On Fri, 1 Dec 2023 11:21:22 -0800
> Johnathan Cobden-Nolan <jcobdennolan@gmail.com> wrote:
>> I have installed OpenBSD on hd0l: in my case it is for multi-booting,
>> but I imagine there are other use cases where boot and/or root are
>> installed on partitions other than 'a'.
>>
>> This is a UEFI system so I've installed the efi bootloader which I am
>> able to execute. The bootloader first complains that there is no
>> hd0a:/etc/boot.conf. This is expected, since my install is at hd0l.

Ah, I missed you don't want to create 'a' partition. I'm sorry.

In that case, you need to modify the bootloader as you are already discussing.

>> Since there is no boot.conf being read, it doesn't know where to try
>> booting: I am only able to boot the OS by typing "boot hd0l:/bsd".
>
> If you just want to avoid the typing, you can put
>
> set device hd0l
>
> on /etc/boot.conf in 'a' parition.
>
>> This is not the end of the world, but it feels like it should be possible
>> to have a boot.conf somewhere other than the 'a' partition. Is it? Is
>> it possible to have a conf file in the EFI partition alongside the
>> bootloader itself?
>>
>> Thanks,
>> Johnathan
>>

No comments:

Post a Comment