How ublue-os/main works
This repository is the “main” image factory for Universal Blue. It does not contain an application runtime; it builds Fedora-based OCI/bootable OS images that serve as the common base for downstream uBlue images. The README makes the current scope explicit: only the base, Kinoite, and Silverblue image families are built now.
The architecture is centered on a top-level Containerfile plus a build_files/ pipeline. The Containerfile is the build entrypoint, while the shell scripts in build_files/ break the image assembly into stages such as package selection, initramfs setup, NVIDIA-specific setup, post-install tweaks, and release/install handling. This is the main transformation flow: Fedora base inputs in, customized OS image out.
System-level customization lives under sys_files/. These files are injected into the image filesystem and define runtime behavior after boot. The tracked customizations include dracut compression settings, a systemd unit for enabling Flathub repositories, tmpfiles rules for coredumps, and a DNF plugin config for COPR behavior. This directory is the boundary between image construction and the final OS configuration.
Package and version control are separated into a few metadata files. packages.json appears to define the package set or package groups used by the build, and image-versions.yaml likely pins or coordinates image versioning across releases. Together they form the declarative inputs that the build scripts consume when assembling the image.
The repo has explicit support for hardware and platform-specific layering. The presence of nvidia-install.sh indicates that GPU driver integration is treated as a build-time concern rather than a post-install user action. Likewise, initramfs.sh and the dracut config suggest the image is tuned for boot-time behavior and image compression, which matters for an immutable/bootable OS.
Release and publishing are handled through GitHub Actions in .github/workflows/. There are separate pipelines for build-beta, build-gts, and build-latest, plus a reusable build workflow and a release automation workflow. That structure suggests multiple release channels are produced from the same source tree, with shared build logic and channel-specific promotion.
The CI/CD boundary is important: local edits and build scripts prepare the image, but GitHub Actions is the system that actually builds, verifies, tags, and publishes artifacts. Supporting files like cosign.pub indicate artifact signing/verification is part of the supply-chain model. CHANGELOG.md and release-please.yml reinforce that releases are managed as a disciplined versioned output, not ad hoc builds.
The repository also contains developer-environment scaffolding in .devcontainer/. This includes a container definition and local features for Podman and tooling, which means contributors are expected to develop and test the image-building workflow inside a reproducible containerized environment. That is a separate concern from the produced OS image itself.
Operationally, the build appears to rely on Fedora/RPM ecosystem tooling rather than application frameworks. The sys_files/usr/share/dnf/plugins/copr.vendor.conf file, the dracut configuration, and the systemd/tmpfiles snippets show that the image is tailored at the OS layer using standard Linux packaging and init systems.
The repo is also organized for governance and automation. .github/CODEOWNERS, issue templates, pull request templates, Renovate config, and semantic/release tooling point to a maintained upstream image project with controlled change flow. These files do not affect the runtime image, but they strongly shape how changes enter the build pipeline.
For architecture diagram purposes, the key flow is: Fedora-derived base inputs and package/version metadata feed the build scripts and Containerfile; build-time customizations are layered in from build_files/ and sys_files/; GitHub Actions produces signed channel-specific images; downstream uBlue images consume this repository’s outputs as their shared base.
Main entry points: packages.sh Package Select · post-install.sh Post Install · reusable-build.yml GitHub Actions · Containerfile Containerfile
Components 19
Build Source
Top-level build entrypoint and declarative inputs
- Containerfile · Primary image build definition
Containerfile - Packages · Declarative package set input
packages.json - Versions · Image version coordination
image-versions.yaml
Build Pipeline
Staged image assembly logic
- Install · Base package and image assembly step
build_files/install.sh - Package Select · Package selection and composition logic
build_files/packages.sh - Initramfs · Boot-time image setup
build_files/initramfs.sh - NVIDIA Setup · GPU driver integration during build
build_files/nvidia-install.sh - Post Install · Final image tweaks and cleanup
build_files/post-install.sh - Release Install · Release-channel install handling
build_files/github-release-install.sh - Build Check · Build verification and guardrails
build_files/check-build.sh
OS Customization
Filesystem-layered system configuration
- Dracut Config · Initramfs compression settings
sys_files/usr/lib/dracut/dracut.conf.d/10-compression.conf - Flathub Service · Enables Flathub repositories on boot
sys_files/usr/lib/systemd/system/flatpak-add-flathub-repos.service - Tmpfiles Rules · Coredump and runtime file rules
sys_files/usr/lib/tmpfiles.d/coredump.conf - Copr Plugin · DNF COPR vendor behavior
sys_files/usr/share/dnf/plugins/copr.vendor.conf
CI/CD
Automation, release, and developer workflow
- GitHub Actions · Build, release, and cleanup automation
.github/workflows/reusable-build.yml - Release Channels · Beta, GTS, and latest builds
- Dev Container · Reproducible contributor environment
.devcontainer/devcontainer.json - Cosign Key · Artifact verification/public signing key
cosign.pub - Downstream Images · uBlue images built from this base
Connections 18
- Containerfile → Install: drives · Build entrypoint invokes staged assembly
- Containerfile → Package Select: includes · Container build consumes package selection logic
- Packages → Package Select: feeds · Package manifest informs image composition
- Versions → GitHub Actions: controls · Version metadata helps drive release builds
- Package Select → Install: prepares · Package decisions flow into install stage
- Install → Initramfs: hands off · Core install stage leads into boot setup
- Initramfs → NVIDIA Setup: extends · Hardware-specific layering follows boot setup
- NVIDIA Setup → Post Install: finishes · Final customization occurs after driver integration
- Post Install → Release Install: packages · Release/install handling completes the pipeline
- Build Check → GitHub Actions: verifies · CI uses build checks as a guardrail
- Dracut Config → Initramfs: configures · Dracut settings shape initramfs output
- Flathub Service → Post Install: installs · Service is layered into the final OS image
- Tmpfiles Rules → Post Install: installs · Tmpfiles rules are included in system image
- Copr Plugin → Package Select: configures · DNF plugin config affects package build behavior
- GitHub Actions → Release Channels: publishes · Workflows produce channel-specific builds
- Release Channels → Downstream Images: consumed by · Published images serve as shared base for downstream images
- Dev Container → Containerfile: mirrors · Contributor environment mirrors build tooling
- Cosign Key → GitHub Actions: supports · Signing and verification in release automation