Re: efiboot: change default partition from hd0a
On Sat, 02 Dec 2023 11:53:25 +0900 (JST) YASUOKA Masahiko wrote: > On Fri, 1 Dec 2023 11:21:22 -0800 > Johnathan Cobden-Nolan 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 >>
Re: efiboot: change default partition from hd0a
> you may have to compile your own bootloader. you just need someone to give > you the patch needed to default you to partition l. Thanks for the suggestion! I dug through the code and changed the default partition myself. In case anyone is looking for it, it is in devboot() function: /usr/src/sys/arch/amd64/stand/efiboot/dev_i386.c > I looked at the .so file that builds the .EFI and I didn't see anything about > msdos file system. I only saw things like: cd9660 nfs ufs ufs2 tftp. It may > be possible if you compiled in msdos support to read in your config from your > EFI partition. I would like that feature. Interesting observation. I will try to look further into this possibility as well. -Johnathan
Re: efiboot: change default partition from hd0a
> 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? you may have to compile your own bootloader. you just need someone to give you the patch needed to default you to partition l. steps: *apply your patch* cd /usr/src/sys/arch/amd64/stand/efiboot/bootx64 make doas make install doas installboot hd0 > Is it possible to have a conf file in the EFI partition alongside the > bootloader itself? I looked at the .so file that builds the .EFI and I didn't see anything about msdos file system. I only saw things like: cd9660 nfs ufs ufs2 tftp. It may be possible if you compiled in msdos support to read in your config from your EFI partition. I would like that feature. -alfred
Re: efiboot: change default partition from hd0a
Hello, On Fri, 1 Dec 2023 11:21:22 -0800 Johnathan Cobden-Nolan 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. > 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 >
efiboot: change default partition from hd0a
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. 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". 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