Open vanrein opened 4 years ago
One approach might be to install the kernel, but build cpio archives over less than the full rootfs. Prefixes (that is, CPIO archives without a trailer) might be created holding the kernel, and/or the modules for a kernel. The kernel is used manually, so an extraction action might be usable.
The "mkhere" environment might give hints about extraction. In fact, the /mkhere/oskernel.sh list
and /mkhere/oskernelmodules.sh list
commands do that already.
Currently, they are installed in
rootfs
, and instead theboot
directory might be placed next to it. But that is still a bit weird. Find a good way and implement it.Note that multiple kernels may be provided from a single request, so a simple solution is probably the
boot
directory next torootfs
. But that is specific to Linux too:'-(