Rsinit -- A Tiny Initramfs Toolbox for Embedded Systems
summary
rsinit is a single-binary Rust initramfs published on crates io that targets embedded boots where verified or encrypted roots are required and aims to stay tiny — optimized builds reach about 130 KiB, static builds ~450 KiB. It mounts roots via kernel-style root= parsing, sets up dm-verity and mounts NFS and 9p over virtio, provides an overlay mechanism to make read-only verified roots writable for development and a bind_modules mode to inject kernel modules from an initramfs. Integration tests run in QEMU and a readahead proof-of-concept shows ~10% user-space boot improvement.
AI-written summary · about
chapters (11)
- 0:00Introduction to RSinit
- 1:49Why RSinit was created
- 4:19Design goals and choices
- 7:07Mounting root filesystems
- 8:53Development workflow with overlays
- 10:18Binary size and optimizations
- 12:45Kernel development features
- 14:09Testing and robustness
- 15:34Readahead implementation
- 16:39Future plans and encrypted roots
- 19:12Q&A session
