Review notice
100% LLM-generated. Not yet reviewed by a human. Experimental.
Background: Hummingbird container construction¶
This is background research, not an implementation, recommendation, or promise of a Hummingbird backend in this POC. For the related DNF5 discussion, see DNF5 installroot background.
At commit
1649df9201bc3f03fb9a93eeb8aec569a8b55d1c,
Hummingbird-generated Containerfiles separate a builder stage from the
published output. The builder creates ${NEWROOT}, downloads the RPMs named by
rpms.lock.yaml, installs them, and performs cleanup. The builder then runs
chunkah build --rootfs ${NEWROOT}; the final stage consumes its archive with
FROM oci-archive:out.ociarchive, rather than literally using FROM scratch.
The generated Chunkah Containerfile
and the final-stage template
show both stages. By contrast, the template's non-Hummingbird path does emit
literal FROM scratch; the generated Rawhide BIND Containerfile
is a concrete example.
Installroot environment and RPM inputs¶
The builder's dnf-installroot wrapper first enters new mount and PID
namespaces with unshare -f -mp. It creates /run, /proc, /sys, /dev,
/tmp, and /var; mounts tmpfs on /run, /tmp, and /dev; bind-mounts
/proc and selected host device nodes; then invokes dnf --installroot.
Its pinned script
also makes explicit that /sys remains empty and removes the temporary mounts
by ending the namespace.
The RPM lockfile is used to download exact listed RPM URLs, group them by
repository ID, generate local metadata with createrepo_c, and create
file:// repositories with gpgcheck=1.
download-locked-packages.sh
is the primary source for that flow. Depending on the image variant, the setup
template imports Fedora and/or Hummingbird RPM keys into the target root; see its
lockfile, repository, and rpmkeys --import steps.
Provenance and limits¶
Hummingbird issue #2
identifies plain dnf --installroot without /dev and /proc as problematic
for package scriptlets, points to DNF5 PR
#2270, and names
the Fedora bootc experimental helper as the short-term working example. Its
follow-up MRs !717
and !781
respectively added that helper to the builder and used it for container builds.
The helper itself says it is based on Fedora bootc's
dnf-installroot
script. This POC does not implement that helper, a Hummingbird output path, or
bootc finalization; the observations above must not be treated as a claim that
an output is bootable or production-supported.