mirror of
https://github.com/vibedOS/vibe-init.git
synced 2026-09-21 12:04:25 -04:00
No description
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .cargo | ||
| .github/workflows | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
| rust-toolchain.toml | ||
vibe-init
vibe-init is the libc-free Rust PID 1 for vibeOS.
Boot sequence
- Mount
devtmpfsat/dev. - Mount
procat/proc. - Mount
sysfsat/sys. - Mount the ext4
/dev/vdbvolume at/var/www. - Start
/bin/vibe-sh. - Start
/sbin/vibe-httpd. - Reap children and restart either service when it exits.
Mount and spawn failures are reported to the serial console and retried where possible. Service definitions are currently compiled in; there is no service configuration format yet.
Build
Rust 1.94.0 is selected by rust-toolchain.toml.
cargo build --release
The result is
target/x86_64-unknown-linux-gnu/release/vibe-init. It is designed to run as
PID 1 through the kernel command line:
rdinit=/sbin/vibe-init
The release binary is statically linked and does not use libc.
License
MIT