04-09-2020, 11:01 PM
(This post was last modified: 04-09-2020, 11:18 PM by Der Geist der Maschine.)
(04-09-2020, 06:19 PM)ab1jx Wrote: I get that a boot menu (like GRUB) isn't going to work because there's no video until the driver loads. But what if you load a very minimal Linux partition with the video driver, then write a small boot menu (in C) that boots your choice of OS. It could be on the eMMC even, the SSD doesn't need to be bootable directly.
Except I don't know what to do in C to boot another partition because I've never done it. Would I just system() a kernel with a full path and command line options? Probably not, and what if the kernel isn't Linux, like an OpenBSD one? system() probably isn't going to like that.
You can kexec into another kernel on another partition and pass an appropriate cmdline to make that kernel mount that partition as root.
In theory, you may be able to kexec an openbsd kernel ... in practise ... maybe not without effort.