Open Source › LamBoot filesystem crates › lamfold-squash
lamfold-squash
SquashFS 4.0 with gzip, xz, zstd, lz4 and lzo: the root inside a live ISO.
forbid(unsafe_code)
|
1 required dependency
What lamfold-squash is for
SquashFS is the root filesystem inside almost every Linux live ISO, so this frontend reads the live root straight out of an ISO, nested through lamfold-iso.
Basis: Clean-room SquashFS 4.0.
Part of lamfold: A thin frontend over the lamfold substrate (v0.1.5), which supplies its codecs, block cache, bounded parsing and integrity checks.
Add it to your crate
[dependencies]
lamfold-squash = "0.1"
Or cargo add lamfold-squash. On Debian unstable or testing, the packaged crate is librust-lamfold-squash-dev (rust-lamfold-squash).
What it reads
| Feature | Status |
|---|---|
| Superblock, metadata blocks, basic and extended inodes, directory listings | Read |
| Data blocks, sparse blocks as zeros, fragment tails | Read |
| Partial reads | read_at decodes only the blocks it touches, so a file of any size reads in pieces (0.1.1) |
What it refuses
- Legacy lzma1 compression
- An image whose compressor feature is disabled
xattrs, the export and lookup tables and the directory index aren't used.
What it depends on, and what it doesn't
Avoids: Everything but the lamfold substrate; the compressors are the substrate's permissive codecs.
Always
- lamfold 0.1.5: The substrate
Only with a feature
None.
Cargo features
| Feature | Default | What it adds |
|---|---|---|
| gzip, xz, zstd, lz4, lzo | Yes | Each compressor, through the substrate codec |
| std | Yes | std support |
How it's tested
Real mksquashfs images, including a 600 MiB sparse file larger than the substrate's whole-file read cap.
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
The lamfold stack
Disk filesystems: lamxfs · lambutter · lamlvm · lamzfs · lamexfat · lamfat