Expand description
Real initramfs builder producing valid cpio archives (newc format).
The cpio “newc” (SVR4 with no CRC) format is what the Linux kernel expects for initramfs archives. Each entry consists of a 110-byte ASCII header followed by the filename (NUL-terminated, padded to 4-byte boundary), followed by the file data (padded to 4-byte boundary).
The archive is terminated by a trailer entry with the name “TRAILER!!!”.
Structs§
- Cpio
Builder - A builder for creating cpio newc archives suitable for Linux initramfs.
Functions§
- build_
initramfs - Build a complete initramfs with standard directory structure and an /init script.
- default_
init_ script - Default /init script that mounts essential filesystems, configures networking, and starts services.
- parse_
cpio_ entries - Parse a cpio newc archive and return the list of entries.