Image manifest schema v1

Feclora publishes an image as one or more artifact files plus a validated manifest.json. The manifest describes the captured source and stored bytes. It is not an executable restore plan and never authorizes a target write.

Image types and current capture support

Manifest image type Meaning Capture status Restore status
disk Complete block-device image plus partition-table metadata Implemented in local GTK workflow as compressed/encrypted RAW or QCOW2 Implemented for an existing whole-disk target; QCOW2 is verified and converted to private RAW staging before writing
partition One existing partition, captured with Partclone when supported or raw bytes otherwise Implemented in local GTK workflow; requires current storage inventory Implemented for an existing partition target
logical_volume One active LVM logical volume in a healthy VG Implemented in local GTK workflow for uniquely identified, non-hidden, non-snapshot LVs Implemented into an existing active, unmounted linear or thin LV after topology, identity, capacity and sector-size preflight; no LVM objects are created or resized
stratis_filesystem Filesystem data from one existing Stratis XFS filesystem Implemented in local GTK workflow; requires complete Stratis metadata and partclone.xfs Implemented into a distinct, pre-created, active and unmounted Stratis XFS filesystem; no pool/filesystem provisioning or resize

These are image source types/layers, not repository types. A repository is the explicitly selected local or remote destination holding the image files. SSHFS, NFS and SMB/CIFS are remote filesystem transports; S3 is an object-storage transport; LVM, LUKS2 and Btrfs describe the source storage being imaged.

Storage-layer scope

The optional storage object records the planner’s view of the source layer, byte scope and dependencies. It is provenance, not a command to activate, unlock, mount, snapshot, format or modify storage.

A raw LUKS2 partition image can be restored through the ordinary partition restore path as bytes to an existing compatible partition. That operation does not provision encryption, unlock the result, or manage keys. A layer-aware Btrfs restore workflow remains unimplemented.

Schema fields and artifact roles

The validator supports image_type values disk, partition, logical_volume and stratis_filesystem. Source capacity and logical sector size are recorded; logical-volume and Stratis filesystem manifests use partition_table: "none" and require storage provenance.

Artifact roles include:

For whole-disk images, the disk-image format may be raw or qcow2. QCOW2 artifacts must be uncompressed and unencrypted; the manifest’s source_size_bytes is the QCOW2 virtual capacity, not the stored file length. Restore verifies the stored digest, rejects backing or external data-file dependencies before structural checking, checks the virtual capacity, and converts to a private RAW staging file before using the normal whole-disk writer. The temporary filesystem needs free space for the stored QCOW2 file, the full RAW virtual capacity and a small safety margin. No guest driver, initramfs or firmware repair is performed.

Each artifact records a safe basename, role, encoding, compression, encryption, stored byte length and SHA-256 digest. Partition-image and logical-volume-image artifacts may also record a recognized filesystem type. The LV manifest requires exactly one logical-volume-image artifact and no other artifact role.

The optional storage object has its own schema version and validates capture scope, source layer, supported LUKS/LVM/Btrfs identifiers (including the positive Btrfs device count) and a restricted dependency list. Unknown fields, invalid types, incompatible scopes and unsupported dependency kinds are rejected. Legacy disk/partition manifests without storage remain readable; legacy Btrfs partition images without single-device topology provenance are intentionally refused by the restore preflight.

Integrity and encryption

SHA-256 covers the exact stored artifact bytes. Compression is applied before optional age encryption. For an age-encrypted artifact, restore verifies the ciphertext size/digest first, then authenticates/decrypts into private staging before decompression or target writes.

SHA-256 digests in the manifest detect artifact corruption relative to the recorded metadata. They do not authenticate the publisher. The manifest is repository metadata protected by transport authentication and repository access controls.

Repository publication uses the manifest as its visibility marker. This is not a general crash-recovery transaction across arbitrary filesystems. Do not treat orphaned artifacts without a manifest as a complete image set.