Open Source › LamBoot filesystem crates › lamfold-romfs

lamfold-romfs

Linux romfs, the minimal uncompressed format for tiny embedded and early-boot images.

Reads romfs | v0.1.1 | MIT OR Apache-2.0 | Rust 1.87+ | no_std, forbid(unsafe_code) | 1 required dependency
OVERVIEW

What lamfold-romfs is for

romfs is the minimal uncompressed read-only filesystem for tiny embedded and early-boot images.

Basis: Clean-room Linux romfs.

Part of lamfold: A thin frontend over the lamfold substrate (v0.1.5), which supplies its codecs, block cache, bounded parsing and integrity checks.

INSTALL

Add it to your crate

# Cargo.toml
[dependencies]
lamfold-romfs = "0.1"

Or cargo add lamfold-romfs. On Debian unstable or testing, the packaged crate is librust-lamfold-romfs-dev (rust-lamfold-romfs).

CAPABILITIES

What it reads

FeatureStatus
Header (-rom1fs-, size, volume name) and 16-byte aligned file headersRead
Directory chains, regular files, symlinksRead
Hard linksRead as their target (0.1.1)
DEPENDENCIES

What it depends on, and what it doesn't

Avoids: Everything but the lamfold substrate.

Always

Only with a feature

None.

Cargo features

FeatureDefaultWhat it adds
stdYesstd support
TESTING

How it's tested

Real genromfs images.

WHY IT EXISTS

No GPL drivers in the boot path

Until 2026 LamBoot read most Linux filesystems through about a dozen prebuilt UEFI filesystem driver binaries from the EfiFs (GPL-3.0) and rEFInd (GPL-2.0) projects. Three things ruled them out at once. Debian's free-software guidelines and Fedora's packaging rules reject a prebuilt .efi blob that isn't built from source in the archive. Microsoft doesn't sign GPLv3 code for Secure Boot, and loading a separate UEFI driver binary removes the ShimLock protocol that shim 15.8 relies on. And GPL binaries sit badly beside a permissively licensed loader. These crates replace those drivers with readers compiled into LamBoot itself. The whole family · LamBoot