# Rebuilding and testing the Debian 12 and 13 cloud images

> XFS tools, locales and accounts on all four Debian 20261130-2678 source disks, with native boot results for the Barn candidates.

---

LLMS index: [llms.txt](/v1.5/llms.txt)

---

On December 3, 2026, Barn rebuilt the amd64 and arm64 images for `d12` and `d13` from Debian's official build `20261130-2678`. After acceptance, the local repository and m0 marked all four artifacts as `supported` in signed catalog `2026120302`. Both `d12:stable` and the default `d13:stable` resolve to `20261130.2678.1`. Both public Barn mirrors promoted the same catalog later that day. [Debian 12 build](https://cdimage.debian.org/cdimage/cloud/bookworm/20261130-2678/) · [Debian 13 build](https://cdimage.debian.org/cdimage/cloud/trixie/20261130-2678/)

## What the source disks contain {#upstream}

Each `generic` qcow2 passed Debian's `SHA512SUMS` check before read-only inspection. Debian 12.15 and 13.8 gave the same results on both architectures.

| Check | Upstream result | Barn recipe |
|---|---|---|
| XFS | The kernel module is present. The image lacks `xfsprogs` and `mkfs.xfs`. | Install the userspace tools offline. An explicitly requested XFS data disk needs `mkfs.xfs`. Automatic filesystem selection falls back to ext4 when it is missing. |
| Locales | The default is already `C.UTF-8`. The `locales` package is installed, but `locale -a` lists only `C`, `C.utf8` and `POSIX`. | Generate `en_US.UTF-8`, keep the default, and check that each locale reports the UTF-8 character map. |
| Accounts and SSH | The `dba` user and `admin` group are absent. SSH already disables password and keyboard-interactive authentication. | Create `dba:admin` with UID and GID 88, grant passwordless sudo, explicitly disable root SSH login and verify the effective configuration with `sshd -T` after boot. |
| Instance identity | The machine ID is empty. The disk has no SSH host keys, authorized keys or cached cloud-init instances. | Clear and verify these fields so each new guest generates its own identity on first boot. |
{.wide}

The offline package set for Debian 12 contains `xfsprogs 6.1.0-1`, `libinih1` and `liburcu8`. Debian 13 takes `xfsprogs 6.13.0-2+deb13u1`, `libicu76` and `libinih1`. Each build used the existing architecture-specific DEB digests. The package's configuration script handles the initramfs update. [Normalization script](https://github.com/pgsty/barn/blob/v1.4.0/packaging/image-pipeline/normalize-guest.sh) · [Data disk initialization](https://github.com/pgsty/barn/blob/v1.4.0/internal/cloudinit/scripts/init-disks.sh)

## Candidate images and native boot results {#acceptance}

Each target was built twice from the original disk. The source digest, packages, recipe, tool versions and in-guest normalization marker matched across runs. The resulting qcow2 digests differed. The table identifies the copy that passed native boot tests and entered the local candidate repository.

| Image | Architecture | qcow2 bytes | SHA-256 |
|---|---|---:|---|
| `d12` | amd64 | 763494400 | `e7f6298a3f241aa9f986b316b467c2d68a8c405c5516347dc7790a5e781c06e4` |
| `d12` | arm64 | 739639296 | `7a864eb40369dfa85f51474365a548e7d88a5cf90dfeff05460956f9fdbe1656` |
| `d13` | amd64 | 540934144 | `d6ec89880401a1d38f24be592c16a0e8f6e54256565d648f2e587d45a5411e31` |
| `d13` | arm64 | 551419904 | `41b1ffc987e204ef7238f5dba673972f6db3b4ec96dda1cc744adedc1b675a80` |
{.wide .expand}

The amd64 guests booted on Linux KVM and the arm64 guests on Apple Silicon HVF, all with UEFI. Each guest completed initialization with Barn-generated NoCloud data and accepted SSH over both the management and private interfaces. The root disk grew from 3 GiB to 8 GiB. Barn formatted the new data disk as XFS and mounted it at `/data`. Each guest wrote markers to both disks, powered off and read them back after booting from the same disks. The boot ID changed. The machine ID, SSH host key and XFS UUID persisted. [Image pipeline](../../../docs/reference/image-pipeline/) · [Previous Debian 13.8 tests](../image-refresh-20261126/)

The local candidate catalog passed `barn repo build` and `barn repo verify`. Using a fresh `BARN_HOME`, Barn 1.4.0 pulled all four images from the `candidate` channel and verified their digests, sizes and qcow2 metadata.

After synchronization, Barn 1.4.0 verified and activated signed catalog `2026120302` from m0 in a fresh `BARN_HOME`. All 17 stable artifacts had the expected HTTP content length. Full HTTP downloads of the four Debian artifacts matched the SHA-256 digests above.

On both public mirrors, `make catalog-check` verified the ML-DSA-87 and Barn 1.4.0 Minisign signatures, the embedded catalog bytes and the lengths of all 17 stable images. An independent full read-back from each public mirror matched the signed SHA-256 digests for all 17 stable images, including the four new Debian images above (14,777,778,176 bytes per mirror). The packaged candidate and Barn 1.4.0 both activated catalog SHA-256 `43c01556d2f7939bb1c4e80e864057561aad42ce5430a381395fc08bc2c1f8c4` in fresh data directories. [Catalog release checker](https://github.com/pgsty/barn/tree/main/tools/catalogcheck)

With that catalog active, `barn image info` on Barn 1.4.0 displays `d13:stable` by default. The 1.4.0 `barn init` template still selects `u24`. Use `barn init -I d13` to generate a Debian 13 inventory with that release. Barn 1.5.0 candidate inventories default to `d13`.
