wire / magic /
cpio
cpio archive (initramfs) signature cpio is the archive format used for Linux initramfs (initial RAM filesystem). The 'newc' format (used by the kernel) begins with the 6-byte ASCII magic '070701' (or '070702' for CRC variant).
magic kind signature status de-facto verification verified tier B file-signature@1
aka: cpio magic · .cpio
file signature magic: 30 37 30 37 30 31⧉ copy @ offset 0
.cpio application/x-cpio
spec: cpio (Linux initramfs)
Magic '070701' (0x30 0x37 0x30 0x37 0x30 0x31) for the 'newc' format. Magic '070702' for the 'crc' variant (adds a CRC-32 per file). Each entry: magic (6), ino (8), mode (8), uid (8), gid (8), nlink (8), mtime (8), filesize (8), devmajor (8), devminor (8), rdevmajor (8), rdevminor (8), namesize (8), check (8), then the filename (namesize bytes, NUL-terminated, padded to 4), then the file data (filesize bytes, padded to 4). The kernel unpacks the initramfs into a tmpfs (rootfs) during early boot. initramfs contains the early userspace (modules, firmware, init) needed to mount the real root filesystem.
agent: curl -H 'accept: application/json' wire.phall.io/magic/cpio⧉ copy
or /magic/cpio.json ⧉ copy
wire.phall.io ⌘K search main ✓