Skip to main content
Rugix Bakery 0.9.6 is here: Build rules for custom image pipelines and verified boot for EFI and Raspberry Pi. Read the release post.
Documentation

core/archive-tree

Archive a directory tree while preserving Linux filesystem metadata.

Preview
You're viewing the Next docs — a rolling preview of in-development changes. The current release docs may differ.

Archive a directory tree while preserving Linux filesystem metadata.

Inputs

tree

Kind: directory

Directory tree including ownership, links, ACLs, and extended attributes.

Parameters

clamp-mtime

Default: ""

Optional RFC 3339 upper bound for modification times. Defaults to the build source date.

Outputs

archive

Kind: file

Sorted PAX archive with normalized volatile metadata.

Execution

Environment

Rugix Bakery

Source epoch

Consumed

Output cache

Allowed

Create a sorted PAX tar archive of a filesystem tree. The archive preserves ownership, permissions, hard links, symlinks, device nodes, ACLs, and extended attributes. Access and change times are omitted, and modification times are clamped to the source date.

For example:

uses = "core/archive-tree"
inputs.tree = { path = "prepared-root" }

This artifact can accompany a filesystem image for inspection or further processing. Filesystem image rules consume directory trees directly; they do not require an intermediate archive.

The archive uses the build’s SOURCE_DATE_EPOCH. To use a different modification time limit, set parameters.clamp-mtime to an RFC 3339 timestamp, for example "2024-01-01T00:00:00Z".