master
Add -c option that sets up the machine to boot from the specified disk. For now, this is only implemented on amd64 and arm64 machines that use UEFI and a GPT partition table. Will be used by the installer soon.
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
Only set BootOrder if our boot option isn't already part of it. This means sysupgrade (or reinstalls) will not longer set OpenBSD as the default OS if users change the boot order by some other means. Fresh installs will still make OpenBSD the default OS.
Avoid null-pointer deref in the non-GPT case for installboot -c.
Merge duplicate MD code into MI sr_open_chunk()
Add -p option to "prepare" (newfs) a filesystem that will be used for the bootloader. This is a no-op on architectures where such a filesystem isn't needed.
spelling fixes; from paul tagliamonte any parts of his diff not taken are noted on tech
Document -c option.
Nuke some 'set but not used' pathlen variables.
Fix confusing comments, no object change; with caspar
Check for offline chunks first, then check for keydisks
Fix -r on multi-chunk softraid volumes
Rework installboot and use a single directory with a single makefile. The directory per machine model is arguably cleaner, however it does not play well with distrib/special and instbin.
Make "prepare filesystem" softraid aware, fix arm64 softraid install
installboot(8): Adjustments for EFI platforms