Some people including myslef reported on @misc that installboot fails on recent snapshots.
After some investigation I found a work around: deleting an unused EFI variable. I also found that this is not possible with efivar in its current state, however the kernel support for that operation is there as well as most of the required code in efivar. So it was just a matter of adding some code. It's not suitable for upstream since they use sysfs and the OpenBSD port uses ioctl. Added -r or --remove option because -d and -D are already taken. Tested it on a recent snapshot in single user mode, as securelevel > 0 won't let you set EFI variables. This is the first time I submit something like this so I may be getting some things wrong. Feedback welcome.
efivar.patch
Description: Binary data