Skip to content

Rewrite init in Rust #632

@mtjhrc

Description

@mtjhrc

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?

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions