Tacklebox is a high-performance orchestrator for bootc that provisions multi-tenant, updatable, and deduplicated bootable media (USB drives, SD cards, or raw disk images).
Born from the superiso project, Tacklebox evolves the concept from static ISOs to dynamic, writable GPT disks with a unified bootloader.
- π Multi-Boot Dictatorship: Automatically installs and manages
systemd-booton a unified ESP, resolving conflicts between Ostree and Composefs backends. - π§ Intelligent Deduplication: Leverages a shared
containers/storageandostreerepo across all bootable environments on a single disk. For ISOs,"shared_store": {"dedup": true}packs every env into one combined squashfs so files shared between images (e.g. the Fedora base of Bluefin + Bazzite) are stored once. - π Integrated Update Lifecycle: Update any OS on the drive in-place with
tacklebox update. It safely rotates BLS entries and extracts new kernels/initrd files. - πΎ Modal Booting: Supports both Live (ephemeral) and Persistent boot entries for the same OS image via smart kernel argument manipulation.
- π Shared Persistence: Smart OverlayFS mounts allow sharing files in
/home/liveuseracross all OSes while isolating desktop-specific configurations (KDE vs GNOME). - π¦ Distribution Ready: Built-in support for creating sparse
.img.xzfiles for easy sharing. - π‘οΈ Integrity First: Automatically enables
fs-verityon partitions to support modern container backends like Composefs.
Tacklebox ships with a custom dracut module (src/dracut/95tbox-root/) that handles multi-tenancy at boot time:
- Locates the target OS subdirectory on the
TBOX_STOREpartition. - Bind-mounts it to
/sysroot. - Sets up the persistent home overlay if requested.
Before placing the initramfs on the ESP, Tacklebox checks whether the image's
initramfs already contains the required modules. If not, it rebuilds it
automatically by running dracut inside a privileged container derived from
the source image β no pre-processing of your images required. The rebuilt
initramfs is cached by image ID, so the overhead only occurs on the
first build or after an image update. The dracut module source is embedded
in the tacklebox binary, so this works without the repo checkout.
Modules injected automatically:
| Target type | Modules added |
|---|---|
ISO (--iso) |
dmsquash-live, tbox-root |
| Block / USB | tbox-root |
If your image already ships the required modules (e.g. pre-built superiso-live
images), add "skip_initramfs_rebuild": true to the environment in your recipe
to skip the rebuild and use the image's initramfs as-is.
Everything expensive is cached under <output-base>/ keyed by image ID,
so incremental rebuilds only pay for what actually changed:
| Cache | What it saves |
|---|---|
initramfs-cache/ |
The per-image dracut probe/rebuild (~2-3 min) |
squashfs-cache/ |
The per-env mksquashfs for ISO targets (minutes per env) |
Rebuilding a three-env ISO where one image ref changed re-squashes only that env. Delete the cache directories to force a full rebuild.
Tacklebox automatically handles the unique requirements of the Composefs backend, including:
- Enabling
fs-verityduring partition formatting. - Managing the required bootloader metadata that
bootcexpects. - Generating specialized BLS entries with
rootflags=subvol=...mapping.
sudo tacklebox build recipe.json --xzsudo tacklebox build recipe.json /dev/sdaRe-installs all environments from a recipe without wiping the TBOX_PERSIST partition.
Useful when you add an env to the recipe, change image refs, or need to refresh stale deployments.
sudo tacklebox update recipe.json /dev/sda# Auto-detect the TBOX_STORE partition (run from a booted tacklebox env)
tacklebox status
# Inspect a specific store mount or raw image file
tacklebox status /mnt/tbx
tacklebox status /path/to/tacklebox.imgTacklebox is driven by simple JSON recipes:
{
"media_name": "Tuna-Toolkit",
"size": "60G",
"shared_store": {
"format": "ext4"
},
"partitions": {
"esp": "1G",
"store": "50G",
"persist": "8G"
},
"bootable_environments": [
{
"id": "bluefin",
"image": "ghcr.io/ublue-os/bluefin:stable",
"title": "Bluefin (GNOME)",
"modes": ["live", "persistent"]
},
{
"id": "bazzite",
"image": "ghcr.io/ublue-os/bazzite:stable",
"modes": ["live"]
},
{
"id": "bluefin-prepared",
"image": "ghcr.io/tuna-os/superiso-live-bluefin:latest",
"skip_initramfs_rebuild": true,
"modes": ["live", "persistent"]
}
]
}The partitions block is optional. By default Tacklebox uses ESP=1 GiB,
Persist=2 GiB, and Store=remainder. Provide explicit sizes when you need a
larger ESP (more kernels), more persistent space, or want to leave headroom.
skip_initramfs_rebuild is optional (default false). Set it to true for
images that already include dmsquash-live and tbox-root in their initramfs
(e.g. pre-built superiso-live images) to skip the rebuild step and save
2β3 minutes per environment on the first build.
title is optional and sets the human-facing boot menu entry name
(e.g. "Bluefin (GNOME)"); the env id is used when omitted.
shared_store.compression controls squashfs quality for ISO targets:
the default favours build speed (zstd level 3); set "release" (or
"max") for distribution-quality compression (zstd level 15, ~10-15%
smaller, slower to build). The SUPERISO_COMPRESSION=release env var
overrides the recipe.
shared_store.dedup (ISO targets only, default false) packs every env
into one combined squashfs β one subtree per env β instead of one
squashfs per env. mksquashfs then stores files shared across images
exactly once, which can shrink a multi-env ISO dramatically when the
images share a base (Bluefin + Bazzite, or two variants of your own
image). At boot, dmsquash-live mounts the combined squashfs and the
tbox-root dracut module pivots into the env's subtree
(tacklebox.root=<env> on the kernel cmdline). Trade-offs: changing any
one image rebuilds (and re-downloads) the whole combined squashfs, and
the squashfs cache is keyed by all image IDs together. See
examples/iso-dedup.json.
Sizing rule of thumb: ostree-backed bootc deployments occupy ~10 GiB each, composefs-backed ones ~5 GiB. A 30 GiB recipe is enough for one ostree env; three need ~60 GiB. Tacklebox prints a warning before partitioning when the math doesn't add up β see
estimateStoreUsage.
| Flag | What it does |
|---|---|
-b, --output-base DIR |
Where intermediate artifacts and tacklebox.img are written. |
--xz |
Compress the resulting image or ISO with xz -T0. |
-y, --yes |
Skip the destructive-target confirmation. Required in CI / non-tty contexts. |
-v, --verbose |
Stream subprocess output and command traces. Default is quiet (stderr still captured on failure). |
--parallel-install N |
Experimental. Run N bootc installs concurrently. Bounded by slowest env, not sum β but shares /var/lib/containers. Default 1 (sequential). |
--unsafe |
Opt out of USB-corruption-resistance defaults. By default Tacklebox emits BLS entries with rootflags=commit=1,errors=remount-ro (and subvol=... merged for composefs), which shrinks the ext4 metadata commit interval from 5 s to 1 s and remounts read-only on FS errors. Negligible perf cost on flash; meaningful protection against half-written rootfs on unexpected USB removal. Use --unsafe only when you're building an image-file you don't intend to plug into anything. |
- Go 1.22+
podman&bootcsgdisk(gdisk)mkfs.vfat,mkfs.ext4(with verity support)xz(for compressed outputs)
Tacklebox uses just for common development tasks:
# Build the binary
just build
# Provision a test USB drive
just provision-usb device=/dev/sda recipe=examples/multi-test.json
# Build a compressed distribution image
just build-xzPart of the Tuna OS ecosystem.
Part of the TunaOS ecosystem. Docs Β· Contributing