Mark Kettenis <[email protected]> wrote:
> Maybe we should rename the file to efi_installboot.c and/or rearrange
> the code slightly such that is becomes more obvious that the name of
> the file is indeed the only difference.
And obviously, efi_installboot.c would do this on all efi architectures:
echo bootriscv64.efi > /mnt/mnt/efi/boot/startup.nsh
OK let's call it
write "boot%s.efi\n" to efi/boot/startup.nsh
On all architectures. Always. Where %s is a rather strange substitution.
The unfinished goal is for installboot(8) to do everything on all
architectures, and for the md_installboot() shell function on all
architectures to be just a call to installboot(8). The current
situation is very ridiculous -- I am out of fingers and toes to count
the number of times I had to read /usr/src/distrib/*/*/install.md
to figure the sequence for by-hand setup of a bootable disk because
installboot(8) on some architecture doesn't do the whole job.