Trending

World technology news

→
The circular magnetic medium removed from a 3.5-inch floppy disk.
3cpio on crates.ioIn-depth report

Linux initramfs tool 3cpio 0.14.1 improves archive read and compression failure handling

The Rust-based utility reports premature end of input and retains compressor failure information when a write fails. Fedora submitted its build for testing.

·3cpio on crates.io
Reading progress0%

The new Rust package is public

3cpio, a tool for managing the Linux kernel's early boot archives, released version 0.14.1. The Rust package registry records 23:22:11 UTC on November 27, which was already 02:22:11 on November 28 in Istanbul. Fedora independently packaged the same version. Its Fedora 45 Bodhi record requested testing at 11:16 UTC on November 28 and was still pending when checked. Those records document different stages of distribution. The source archive was available from crates.io, with its digest matching the registry record. We compared the old and new source archives as a separate check.

What the archive is for

Linux can prepare an initial filesystem in memory while starting. Its contents can include tools and configuration needed before the regular system disk is ready. Kernel documentation describes a buffer based on the newc and crc cpio formats, with concatenated sections and compression where supported. 3cpio creates, examines, lists, and extracts archives made for this setting. A distribution team can use it to inspect an image for early boot files as part of a build. The Rust registry entry is called threecpio and the command is called 3cpio.

Reaching the end of an incomplete input

The first change in the Fedora notes addresses an archive read that encounters the end of decompressed input before it expects to. When the stream is finished, further reads cannot move the inspection forward. The new source handles that case as an unexpected end-of-input error. In an automated build this gives an inspection stage a result it can record and act on. The release notes and source diff agree on the handling change. Our review compared source files and package records. It did not start a system with an image made using the utility.

A compressor failure remains visible

The other fix concerns writing to the compressor process. According to Fedora's notes, the tool reports a failed compressor even if writing to it also fails. Preserving the second process's outcome helps operators identify which part of an archive build failed. A build log can then distinguish the producer's write operation from the compressor's result. That is relevant when a produced archive's presence alone would otherwise be treated as a successful build. The release makes error reporting clearer. It gives no measurement of compression speed in a particular production environment.

Fedora testing and upstream availability

The Rust source package is downloadable as 0.14.1. The Fedora 45 update was a build requested for testing at the time of the check. A machine receiving updates from a distribution repository can therefore be on a different version from the public Rust registry. A build team can record the installed version and package channel together with the image it creates. That record helps reproduce an archive and interpret any change in its failures. The release affects how the archive utility handles read and compression failures during preparation.

Archive photo · Peter Astbury / Wikimedia Commons ↗ · CC0 1.0 · Illustrative archive photograph of floppy disk media, converted to WebP.

Sources and verification
Be the first reader ✎ Write a comment

Reader discussion

Discussion prompt

Which data would you verify before applying this development in your field?

No comments yet. Be the first to contribute.

Write a comment

Comments are real visitor contributions. Repeated, link-heavy or abusive submissions may be limited.