Repository navigation
Description
What
charly can build an OCI image (charly box build) but has no verb that materialises an image's filesystem tree — the step a non-container substrate needs in order to turn a built box into its own artefact. A Firecracker root drive is the case that surfaced it, and it will not be the last: a raw disk, an ext4 rootfs, a chroot tree or an initramfs all need the same thing.
$ charly box
… build cat feature fetch generate inspect labels list … # no export/extract verbWhy it matters, measured
The umbrella ledger's WI-7 producer (charly firecracker image build <box>) is specified as: build the box → extract the OCI image as root, with ownership fidelity → mke2fs -d → emit the artefact. Every part of that is available through charly except the extraction, so the plugin drives the engine directly via the SDK's spec/container.EngineBinary — which is sanctioned for plugin artefact work (the VM-box emitter does exactly this) but means the one step that must be right is the one step with no charly-native verb behind it.
And it must be right, which is the real argument for owning it. Ledger §6.5 records the measurement: a rootfs built by extracting an OCI export as a non-root user comes out entirely owned by that uid — mke2fs -d faithfully copies the source tree's ownership, and a uid-1000 /root plus a uid-1000 authorized_keys makes sshd reject root's key under StrictModes (Permission denied (publickey,password), measured). So the extraction is the difference between a guest that boots and one that does not, and today it is a hand-rolled engine call in a plugin.
What I would expect
A verb in the box family — charly box export <box> --rootfs <dir> (naming is yours) — that:
- resolves the built image (the existing pull/inspect machinery),
- materialises its tree at a destination with the ownership the image records, running root-scoped where needed and saying so (the local-deploy
--allow-root-tasksgate is the established pattern for that consent), - is idempotent and leaves no intermediate container behind,
- fails closed on a non-root attempt rather than silently producing a uid-owned tree — the failure mode that costs hours, because the artefact looks fine until a guest refuses the key.
Scope
Not blocking the WI-7 leg: the plugin's own engine call is a working, sanctioned path, and this is filed rather than worked around because the capability gap is real and separable from that leg. Filed from opencharly/plugin-firecracker while implementing the producer; the evidence is verbatim from live runs.
Assisted-by: DSH deepseek-v4.1-flash (fully tested and validated)
Activity
feat(producer): the artefact producer, its guest bed, and the CLI mis…
fix(image): match the built image by the box's leaf name, so a remote…