How ublue-os/bluefin works
1. Bluefin is an immutable Fedora-based desktop OS image repository, not an application codebase. Its main product is a bootable system image, with two clear flavors: a shared desktop base and a developer-focused “dx” variant.
2. The architecture is split into build-time assembly and runtime customization. Build-time logic lives under build_files/, while filesystem overlays and first-boot hooks live under system_files/. The repo’s Containerfile and GitHub Actions workflows turn these inputs into distributable images.
3. build_files/base/ defines the core OS composition: image metadata, kernel/akmods handling, package installation, initramfs generation, cleanup, and testing. This is the lowest layer of the stack and is responsible for making the image bootable and update-safe.
4. build_files/dx/ adds the developer-oriented layer. It extends the base with extra build steps and tests for tools and kernel/virtualization support that matter for developer workflows, especially Docker/VM/container usage.
5. build_files/shared/ holds common orchestration and utility scripts used by both image variants. This is the build boundary where reusable logic sits, including repo validation, stage cleanup, container/image build helpers, and GNOME extension build support.
6. system_files/shared/ is the runtime overlay applied to all images. It includes GNOME Shell extensions, a shell prompt profile, an rpm-ostreed config, and a small system service to remove Fedora flatpak remotes. This layer shapes the default desktop experience after boot.
7. system_files/shared/usr/share/ublue-os/*hooks.d defines the first-boot lifecycle. There are distinct hook phases for system setup, privileged setup, and user setup, which lets Bluefin separate root-only changes, machine-wide configuration, and per-user defaults.
8. The shared hooks show the main functional integrations: theming, Tailscale setup, Flatpak provisioning, and Framework hardware support. This indicates the image is designed to configure itself on first boot rather than relying on manual post-install steps.
9. system_files/dx/ adds developer-specific runtime behavior. It preconfigures VS Code user settings, enables Docker-related sysctl tweaks, installs dracut VFIO configuration, and ships systemd/tmpfiles units for Incus, libvirt, and swtpm workarounds. These pieces support local containers, VMs, and device passthrough workflows.
10. The DX flavor also includes a small group-management helper and a VS Code user-setup hook. That suggests a user-facing developer environment that is partially provisioned at image build time and partially completed on first login.
11. The systemd units and dracut config are important architectural boundaries. They show that Bluefin is not just layering packages; it is modifying boot-time behavior, kernel initramfs content, and service startup to make virtualization and hardware integration reliable.
12. The release/distribution pipeline is GitHub Actions–driven. Workflows build stable, latest-main, and beta images, generate releases, validate Renovate, and perform cleanup, while cosign.pub and version files indicate signed and version-pinned image delivery.
13. In diagram terms, the core flow is: source overlays and scripts → containerized build pipeline → image variants → first-boot hooks/system services → user desktop and dev environment. The main architectural boundaries are base vs dx, build-time vs first-boot/runtime, and shared vs variant-specific customizations.
Main entry points: base Base build · workflows Release pipeline · shared Shared build · dx DX runtime
Components 34
Build-time
Containerized image assembly and reusable build scripts.
- Containerfile · Defines the containerized image build entrypoint.
Containerfile - Shared build · Common build helpers and reusable scripts for both variants.
build_files/shared - Base build · Core Fedora-based image assembly for the shared desktop base.
build_files/base - DX build · Developer-focused build layer extending the base image.
build_files/dx - Image info · Image identity and release metadata.
build_files/base/00-image-info.sh - Kernel/akmods · Kernel and akmods handling for the bootable image.
build_files/base/03-install-kernel-akmods.sh - Packages · Base package installation and composition.
build_files/base/04-packages.sh - Initramfs · Initramfs generation and boot-critical assembly.
build_files/base/19-initramfs.sh - Cleanup · Post-install cleanup and image size reduction.
build_files/base/17-cleanup.sh - Base tests · Image validation for the shared base build.
build_files/base/20-tests.sh - DX setup · Build-time additions for developer tooling and support.
build_files/dx/00-dx.sh - DX tests · Checks for developer workflow support in the DX variant.
build_files/dx/01-tests-dx.sh - Build script · Main build orchestration shared across image variants.
build_files/shared/build.sh - DX builder · Variant-specific build orchestration for DX images.
build_files/shared/build-dx.sh - Repo check · Repository validation used by the build pipeline.
build_files/shared/validate-repos.sh
Runtime
Filesystem overlays and first-boot customization.
- Shared runtime · Runtime overlay applied to all images.
system_files/shared - Shared hooks · System, privileged, and user setup hooks for first boot.
system_files/shared/usr/share/ublue-os - Theming · Applies default desktop theming and prompt styling.
system_files/shared/usr/share/ublue-os/user-setup.hooks.d/10-theming.sh - Tailscale · Privileged setup for Tailscale integration.
system_files/shared/usr/share/ublue-os/privileged-setup.hooks.d/10-tailscale.sh - Flatpaks · Provisions Flatpak defaults and removes Fedora remotes.
system_files/shared/usr/share/ublue-os/privileged-setup.hooks.d/99-flatpaks.sh - Framework · Hardware support setup for Framework systems.
system_files/shared/usr/share/ublue-os/system-setup.hooks.d/10-framework.sh - Runtime services · GNOME extensions, rpm-ostreed config, prompt profile, and service units.
system_files/shared - DX runtime · Developer-focused runtime customization and service support.
system_files/dx - VS Code · Preconfigured editor settings for developer workflows.
system_files/dx/etc/skel/.config/Code/User/settings.json - DX hooks · User-level DX setup performed on first login.
system_files/dx/usr/share/ublue-os/user-setup.hooks.d/10-vscode.sh - VFIO · Initramfs configuration for virtualization passthrough support.
system_files/dx/usr/lib/dracut/dracut.conf.d/80-vfio.conf - VM services · Systemd and tmpfiles units for Incus, libvirt, and swtpm workarounds.
system_files/dx/usr/lib/systemd/system - Docker sysctl · Sysctl tuning for Docker-related developer workflows.
system_files/dx/usr/lib/sysctl.d/docker-ce.conf
Release
Automation for validation, publishing, and signed delivery.
- Release pipeline · Build, validation, cleanup, and release automation.
.github/workflows - Image builds · Stable, latest-main, beta, and reusable image build workflows.
.github/workflows/build-images.yml - Release flow · Generates releases and distribution artifacts.
.github/workflows/generate-release.yml - Validation · Workflow validation, including Renovate checks and cleanup.
.github/workflows/validate-renovate.yml - Cosign key · Public key used for signed image delivery.
cosign.pub - Versions · Version pinning and image release metadata.
image-versions.yml
Connections 33
- Containerfile → Build script: builds via · Container build entrypoint invokes shared build orchestration.
- Build script → Shared build: uses · Shared build helpers are consumed by the main build pipeline.
- Shared build → Base build: orchestrates · Shared scripts orchestrate the shared base image assembly.
- Shared build → DX build: orchestrates · Shared scripts orchestrate the developer variant assembly.
- Base build → Image info: includes · Base image metadata is part of the core composition.
- Base build → Kernel/akmods: includes · Kernel and akmods are installed during base image build.
- Base build → Packages: includes · Base packages are assembled into the shared image.
- Base build → Initramfs: includes · Initramfs content is generated for bootability.
- Base build → Cleanup: includes · Cleanup stages keep the image lean and safe.
- Base build → Base tests: validates · Base image tests verify the shared OS layer.
- DX build → DX setup: extends · DX build layer adds developer-oriented components.
- DX build → DX tests: validates · DX tests verify developer workflow support.
- DX build → DX builder: orchestrates · Variant-specific build orchestration for DX images.
- Shared build → Repo check: checks · Repository validation is part of shared build hygiene.
- Shared runtime → Shared hooks: contains · Shared runtime includes the first-boot hook lifecycle.
- Shared hooks → Theming: applies · User setup hook configures theming and shell defaults.
- Shared hooks → Tailscale: applies · Privileged hook configures Tailscale.
- Shared hooks → Flatpaks: applies · Privileged hook provisions Flatpak defaults.
- Shared hooks → Framework: applies · System setup hook adds Framework-specific support.
- Shared runtime → Runtime services: contains · Shared runtime bundles desktop services and GNOME extensions.
- DX runtime → VS Code: contains · DX runtime preconfigures VS Code for the user.
- DX runtime → DX hooks: contains · DX user setup hook completes developer environment provisioning.
- DX runtime → VFIO: contains · DX runtime modifies initramfs for VFIO workflows.
- DX runtime → VM services: contains · DX runtime ships service and tmpfiles workarounds.
- DX runtime → Docker sysctl: contains · DX runtime adds Docker-related sysctl tuning.
- Release pipeline → Image builds: drives · Workflows build stable, latest-main, beta, and reusable images.
- Release pipeline → Release flow: drives · Release workflow publishes distributable artifacts.
- Release pipeline → Validation: drives · Validation workflow covers cleanup and Renovate checks.
- Release pipeline → Cosign key: uses · Release pipeline relies on the signing key trust anchor.
- Release pipeline → Versions: uses · Version pinning feeds the distribution pipeline.
- Shared build → Shared runtime: packages · Build-time assembly consumes the runtime overlay inputs.
- Shared build → DX runtime: packages · DX build assembles the DX runtime overlay.
- Release pipeline → Containerfile: builds · GitHub Actions invoke the containerized build.