Currently our custom init is written in C, I believe it it would ease further development to rewrite it in Rust.
Unanswered questions we need to investigate:
- do we still keep statically linking it? - probably yes
- is musl libc good enough for us?
- alternatively is there really no way to link against glibc statically?
- alternatively can we just go no-std, no-libc route via https://github.com/bytecodealliance/rustix
- similar to nix crate but can make raw syscalls
- this should also shrink the init binary size, not sure if we care that much though
- how is Rust support for FreeBSD guests?
- will we make sure upstream libkrun init supports FreeBSD?
Currently our custom init is written in C, I believe it it would ease further development to rewrite it in Rust.
Unanswered questions we need to investigate: