quine-linux
Quine distro of Linux based on uBlue Aurora
Building
The image is built in two repos:
quine-global/aurora, our fork of Aurora. Its workflow builds it with Aurora's ownjust buildand publishes it asforge.in.quineglobal.com/quine-global/aurora:stable. Changes that have to happen inside Aurora's build (its package set, build scripts, the Kinoite base it starts from) go there, as commits on the fork.- This repo's
Containerfile, which builds the quine-linux bootc image on top of that. It first upgrades Aurora to Fedora's latest packages (theupdatedstage, every build): Quine Linux is bleeding edge, ahead of what Aurora'sstablehas caught up to, and we fix what breaks. The kernel stays Aurora's, signed and paired with Universal Blue's prebuilt kernel modules; the initramfs is rebuilt from the upgraded packages. Why, and what we'd do to be stable instead: docs/UPSTREAM.md. Then it layers in everything underoverlay/, plus akmod-builderstage that compiles the CS8409 mic-fix kernel module (see Hardware-specific patches below). Anything aRUNstep on top of Aurora can do belongs here, not in the fork. Its workflow publishesforge.in.quineglobal.com/quine-global/quine-linux, and the live ISO and disk image (to MinIO). Installed systems pull and update from the same image asregistry.quineglobal.com/quine-linux, a pull-only name for it (Taskfile.yml'sUPDATE_IMAGE).
Like Aurora, there's one installer: the live ISO's. There's no separate install ISO.
Taskfile.yml (requires task) is
the supported way to drive all of this β run task with no arguments to
list what's available. Notably:
task build-imageβ builds the image on our published Aurora. To build on stock upstream Aurora instead, passBASE_IMAGE=ghcr.io/ublue-os/aurora:stable; on a local build of the fork,BASE_IMAGE=localhost/aurora:stable. Builds locally, as root, with podman, or docker if podman isn't installed (force either withCONTAINER_RUNTIME=docker|podman). Every task below works with either; under docker, images are copied via skopeo into aquine-containers-storagevolume forbootc-image-builderto read.task build-disk-imageβ builds a ready-installed disk image (qcow2) viabootc-image-builder, landing inoutput/qcow2/disk.qcow2. It has no user: plasma-setup creates the first one at first boot. It's a 24 GiB disk (disk/config.toml), so it fits a 32 GB stick; written to a bigger disk (qemu-img convert -O raw β¦ /dev/β¦), or a VM's disk enlarged (qemu-img resize), the root grows to fill it at the next boot (quine-grow-root.service,overlay/usr/libexec/quine-linux/grow-root). Installs from the live ISO aren't touched.task build-live-isoβ builds a live ISO (live/, after Aurora's): boots into a Quine Linux session with Anaconda WebUI to install it, landing inoutput/live/Quine-Linux-Live.iso. Podman only.task test:stage/task test:bootβ stage the locally-built image as this machine's next boot target (bootc switch), optionally rebooting into it immediately. The fast way to test a change β especially the kernel module β against the real running system, without building an ISO or reinstalling anything.task revertβ rolls back to the previously-booted deployment and reboots, undoing atest:bootswitch (or any other deployment change) if something's wrong.
Equivalently, by hand:
sudo podman build -t quine-linux -f Containerfile .
To build the Aurora fork yourself (Linux, with buildah, cpp, just >= 1.46,
skopeo, jq, yq and cosign), in a clone of quine-global/aurora:
sudo just build --image aurora --tag stable --flavor main # -> localhost/aurora:stable
An ISO can then be generated from the built image with bootc-image-builder
(ghcr.io/osbuild/bootc-image-builder; the project now lives in
osbuild/image-builder, and the old
quay.io/centos-bootc/bootc-image-builder image is no longer updated).
Building everything
The image installs Quine's own RPMs (layer-wizard, dnf-package-store,
swap-watchdog) from the forge's quine RPM group, which each app's
rpm.yml publishes. When those need building first (a change to one of
them, or after moving them to another owner, which leaves their packages
behind), run Build everything (.forgejo/workflows/build-all.yml)
instead of building each by hand:
- It starts
rpm.ymlin the three app repos at once and waits for all of them; if one fails, it stops there and links the run. - Then it starts this repo's
iso.ymland links that run. Tick Also wait for the image build to follow it to the end (about 3 hours; a runner may stop a job at 3 hours, so it's off by default).
The stages and repos are the list at the top of .forgejo/build-all.mjs;
adding a dependency is a line there. It needs the secret BUILD_ALL_TOKEN:
a Forgejo token (scope write:repository) of an account that may run
Actions in those repos and this one, since the automatic token only reaches
this repo.
Releasing
On the forge: Actions β Release β Run workflow. It works out the next
version from the newest v* tag, tags main with it and pushes the tag.
For the next beta there's a one-click Actions β Beta release: the same
as bump: prerelease, pre: beta (v0.1.2 β v0.1.3-beta.1 β
v0.1.3-beta.2). Both tag main's newest commit that isn't marked
[skip ci], since Forgejo wouldn't build a tag on one (those commits don't
change the image). The logic is .forgejo/release-tag.sh.
The tag push makes iso.yml build both architectures, upload the files to
releases/<tag>/ and publish the Forgejo release. Choose bump:
bump |
From v0.1.0-alpha.2 |
From v0.1.0 |
|---|---|---|
prerelease (with pre) |
v0.1.0-alpha.3, or v0.1.0-beta.1 with pre: beta |
v0.1.1-alpha.1 |
release |
v0.1.0 |
an error (already released: use patch with pre: none) |
patch / minor / major |
v0.1.1 / v0.2.0 / v1.0.0 |
the same, plus -<pre>.1 unless pre: none |
version (e.g. 1.0.0) sets the version exactly instead. dry_run only
reports the tag it would make. It refuses to reuse a tag or go backwards.
Pushing the tag needs the repo secret RELEASE_TOKEN, a Forgejo token with
write:repository. The automatic token can push, but a tag pushed with it
doesn't start iso.yml.
Installing with a data disk
The installer (the live ISO's Anaconda) has a Data disk step after the storage steps. It can keep home folders, Flatpak apps, containers and swap on a second disk, so a small system disk doesn't fill up. The iMac (a 32 GB SSD next to a 1 TB hard disk) is the case it was made for.
- Choosing: pick an existing ext4, XFS or Btrfs partition that isn't on a
disk being installed to. A partition labelled
hdd,dataorquine-datais preselected. Nothing on it is erased. - Reusing an earlier layout: whatever is already on the partition is used
again (
home-<user>/,flatpak/,podman-storage/,swapfile). Create your account at first boot with the same user name as before to get your files back. - A fresh disk: it gets
home/(every user's home),flatpak/(the ISO's apps) andpodman-storage/.quine-data-disk-relabel.servicegives them SELinux labels at first boot. - How it works:
- The partition is mounted at
/var/hdd(nofail), and its folders are bind-mounted into place in/etc/fstab. - The home binds have no
nofail: if the disk is missing, boot stops instead of showing an empty home.
- The partition is mounted at
- Code:
- the page is
live/anaconda-webui/(upstream's source plussteps.patch, built inlive/Containerfile'sanaconda-webuistage at the version Fedora ships); - the install step is
data-disk.ksinlive/build.sh; - the hand-made original is described in
docs/relocate-home-to-hdd.md.
- the page is
overlay/
Files here mirror their path on the root filesystem and are baked into the
image via COPY overlay/ / in the Containerfile.
overlay/etc/...β local/admin config. On the ostree-based image, content shipped here becomes the default/etcand is still locally overridable (3-way merged on upgrade), same as any package-installed/etcfile.overlay/usr/lib/systemd/...β vendor-shipped units./usris replaced wholesale on each image build/upgrade, so anything here always matches the image and isn't meant to be hand-edited on a running system.
overlay/etc/gitconfig
System-wide git config so every user on the box gets main as the default
init branch, not master.
overlay/etc/systemd/system/rpm-ostree-cleanup.{service,timer}
Weekly, runs as root via systemd (not cron/sudoers): rpm-ostree cleanup -rb
(drops rollback deployment and any pending deployment). Enabled at build time
via RUN systemctl enable in the Containerfile.
overlay/etc/systemd/journald.conf.d/size-cap.conf
Continuous 500M journal retention cap instead of a periodic vacuum job.
overlay/usr/lib/systemd/user/disk-cleanup.{service,timer}
Weekly, runs as the user, no privilege needed: podman system prune -af,
flatpak uninstall --unused -y, clears ~/.cache. Enabled for every user
by systemctl --global enable in the Containerfile (and listed in
overlay/usr/lib/systemd/user-preset/90-quine-linux.preset, which on its own
does nothing: no one runs systemctl --global preset for files in the image).
SSH and GPG agents
Both run for every user, socket-activated (systemctl --global enable in
the Containerfile):
ssh-agent.socket: holds SSH keys. Plasma setsSSH_AUTH_SOCKto it ($XDG_RUNTIME_DIR/ssh-agent.socket, from Fedora's/etc/xdg/plasma-workspace/env/ssh-agent.sh).gpg-agent.socket: GnuPG only. Its SSH emulation,gpg-agent-ssh.socket, is left off, so there's one SSH agent andssh-addalways means ssh-agent. To use a GPG key for SSH anyway:systemctl --user enable --now gpg-agent-ssh.socketand pointSSH_AUTH_SOCKat$(gpgconf --list-dirs agent-ssh-socket).
~/.gnupg is kept at mode 700 for every user
(overlay/usr/share/user-tmpfiles.d/quine-gnupg.conf, applied at each
login): created that way if it's missing, set back to 700 if something made
it world-readable.
KeyMaker (io.github.tobagin.keysmith), for making and managing SSH keys, is
preinstalled (overlay/etc/flatpak/preinstall.d/quine-linux.preinstall).
overlay/etc/xdg/kwinrc
KWin defaults for every user. The top-left hot corner that opens Overview
is off ([Effect-overview] BorderActivate=9). A user's own
~/.config/kwinrc, which System Settings writes, still overrides it.
It also turns on the Force Quit Monitor script (below).
Force Quit Monitor
Force Quit Monitor (force-quit-gui, from swap-watchdog) runs from login
and stays minimized, so swap-watchdog can show it when memory runs out
without starting anything. A KWin script
(overlay/usr/share/kwin/scripts/quine-force-quit-monitor) keeps it out of
the taskbar, Alt+Tab and the pager while it's minimized, and puts it back
when it's shown. KWin has to do this because a Wayland app can't ask for it
itself.
The taskbar's pinned apps
Falkon is pinned after the browser. For new users, the Containerfile adds it
to Aurora's panel layout. Users who already have a panel get it once from a
Plasma update script
(overlay/usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates/91-quine-pin-falkon.js),
so if they unpin it, it stays unpinned.
Graceful updates: update-confirm, update-rollback, update-skip-rejected, update-failed
Aurora's nightly update (uupd) stages a new system version in the
background. These scripts, all in overlay/usr/libexec/quine-linux/, handle
the two ways that can go wrong.
A new version that doesn't work:
- On the first login into a new version,
update-confirmasks "Quine Linux was updated from X to Y. Is everything working?" It's started byetc/xdg/autostart/quine-update-confirm.desktopand shown withkdialog. This is the same check layer-wizard does after layering a package. - Keep this update records the version in
~/.local/state/quine-linux/confirmed-deployment. - Ask me later asks again at the next login.
- Roll back asks for confirmation, then runs
update-rollbackthroughpkexec, which asks for an admin password. That runsbootc rollback --applyand restarts into the previous version. If the system image itself changed, it also records the image in/var/lib/quine-linux/rejected-images. - A new install or new user isn't asked: their first login just records the current version.
- While layer-wizard has its own confirmation pending,
update-confirmstays quiet, so there's never a double prompt.
Not reinstalling a rejected image: update-skip-rejected is an
ExecCondition of uupd.service (uupd.service.d/60-quine-graceful.conf).
It skips the nightly run while the newest image is one someone rolled back
from. Updates resume by themselves once a newer image is published. Flatpak
updates are skipped on those nights too, because uupd does both in one
run. update-check doesn't offer a rejected image in the update bar either
(rejected: true).
Failed updates: after uupd's own retries, quine-update-failed.service
(the unit's OnFailure) runs update-failed. It saves uupd's last errors,
and whether the disk was full, to
/var/lib/quine-linux/last-update-failure.json. update-check publishes
that as lastFailure in update-status.json, for the update bar. uupd
itself already notifies the user. A successful run deletes the file.
overlay/etc/systemd/system/cs8409-intmike-power-fixup.service
Hardware-specific fixup for the iMac19,2 internal mic (see below).
Kickoff (the start menu)
Built from our fork,
quine-global/plasma-desktop,
branch quine-v<Plasma version> (Containerfile's kickoff-builder
stage). Our changes:
- An update bar: "A system update is available" / "Restart to finish
updating", from
quine-update-check.service. - While searching, a last row under the results, "Install βseahorseβ from
Bazaar", which opens Bazaar searching for the same words
(
flatpak run io.github.kolunmi.Bazaar --search-for=β¦).
The menu tree
menu/ is the start menu, as directories: each directory is a folder in
Kickoff and each file in it an app, named as the file, holding the app's
desktop file ID. tree -a menu shows the whole menu.
menu/Internet/.icon applications-internet (the folder's icon)Quple com.quineglobal.QupleUtilities/Central Package io.github.kolunmi.BazaarOther/.everything-else every app placed nowhere else.hidden IDs in no folder and not found by search
- It's the whole menu. At build time
overlay/usr/libexec/quine-linux/build-menureplaces Plasma's menu file (/etc/xdg/menus/plasma-applications.menu) with one that lists exactly these folders and apps, and writes each folder's name and icon (/usr/share/desktop-directories/quine-menu-*.directory). Apps' ownCategoriesdon't place them any more. - The file's name is the app's name, in the menu, KRunner and the task
manager: build-menu sets
Namein the image's entries (/usr/share/applications), and quine-app-updates in Flatpak apps' entries as they're installed (the tree is in the image, at/usr/share/quine-linux/menu). One app can be in two folders, under one name. - Apps the tree doesn't mention (what users install, anything new in an
update) go to the folder with
.everything-else. The build lists the image's own unplaced apps: place them, or add them to.hidden. - Hidden apps get
NoDisplay=true: not in the menu or search, but they still open files and run by command. - Users' own changes (Menu Editor) still apply on top.
- Folder names aren't translated: they're the directories' names.
- An app in the tree that isn't installed (a Flatpak before first boot, the
installer outside the live ISO) just isn't shown;
live/build.shruns build-menu again after adding the installer.
Launch feedback
Plasma shows a starting app as a spinning icon in the task manager, and stock
Plasma stops it after 5 seconds whether or not the app is up: a slow start
(a Flatpak waiting on a portal, a swapping machine) then looks like nothing
happened. Ours follows the launch instead (taskmanager/startup-feedback.patch
on plasma-workspace's libtaskmanager, Containerfile's
taskmanager-builder stage):
- KDE starts each app in its own systemd unit (
app-<id>@β¦.service; a Flatpak moves on intoapp-flatpak-<id>-β¦.scope). The icon spins while the launch's units run and no window of the app has appeared, matched by app id or by the window's process being in one of those units. - A tray icon from the app also ends it: it started in the background.
- If the units end with no window: a notification, " didn't open", adding that another copy is running, and may not be responding, when one is (a launch that hands over to a hung instance looks like this).
- After 3 minutes: " is still starting", with Keep Waiting (asks again 3 minutes later) and Stop (stops its units).
- A launch with no unit to follow ends after the usual timeout, as before.
- Apps with
StartupNotify=falseget no feedback, as before.
The 3 minutes is StillStartingTimeout in ~/.config/klaunchrc,
[TaskbarButtonSettings], in seconds. Wayland only (X11 is unchanged).
The busy cursor still stops after its own timeout, as KWin draws it.
Administrator prompts
Stock Plasma's password dialog (polkit's KDE agent) handles one request at a
time and turns down every other one while a dialog is open, with nothing on
screen to say so. Dolphin's "Act as Administrator" opened two dialogs at
once, and the dialog could open behind the active window. Together that left
admin folders failing with "Access denied to ." while an unseen dialog sat
open, until someone answered it or restarted the agent. Ours (admin-auth/,
Containerfile's admin-auth-builder stage, which rebuilds each package
from Fedora's own source RPM plus one patch):
- The dialog (
polkit-kde.patch): a request that comes while a dialog is open waits its turn. The open dialog comes to the front, and a notification says another program is waiting, with Show to bring the dialog up. A dialog whose asking process has exited closes, along with any waiting request of that process. - polkit-qt (
polkit-qt-1.patch): tells the agent which request polkit cancelled, so the right one closes when several are open or waiting. - Dolphin's admin mode (
kio-admin.patch): the job that watches for the authorization to expire no longer asks for the password itself (that was the second dialog). It waits for the folder's own prompt. Calls to the root helper wait up to 10 minutes for the password instead of D-Bus's 25 seconds, and a failed or cancelled prompt says "Authentication as administrator failed or was cancelled." instead of "Access denied to .". - KWin (
overlay/etc/xdg/kwinrulesrc): the dialog opens in front, with focus, despite focus-stealing prevention.
If a new version moves the patched code, the build stops and says which patch didn't apply.
Signed images
Images are signed with GPG, by the "Quine Global Packages" key, the same
key that signs our dnf and apt repos (06249465F4C6A0A851211266772797169CE1D647,
public at overlay/etc/pki/containers/quine-linux.gpg and
packages.quineglobal.com/quine-packages.asc).
- CI (
iso.yml, "Sign the image"): after each push,skopeo standalone-signsigns the image's manifest digest and uploads the signature to MinIO's publicsigstore/(one file per digest,quine-linux@sha256=<hex>/ signature-1). The next step checks it's served, and fails the build if not. Secrets:IMAGE_SIGNING_KEY(armored; job-level env only, never a step's: iso.yml says why) andIMAGE_SIGNING_PASSPHRASE. - The image:
/etc/containers/policy.jsonrequires that signature forregistry.quineglobal.com/quine-linux(overlay/usr/libexec/quine-linux/add-image-signing-policy), and/etc/containers/registries.d/quine-linux.yamlsays where signatures are. - Which installs check it: those whose deployment follows
ostree-image-signed:β¦, which is what the disk image sets up. The live ISO's installs followostree-unverified-registry:β¦(no check);sudo bootc switch --enforce-container-sigpolicy registry.quineglobal.com/quine-linux:latestturns checking on for one. - Before signing existed (until 2026-11-21) a disk-image install couldn't
update at all: it demanded a signature nobody made. Such a machine needs,
once,
sudo bootc switch registry.quineglobal.com/quine-linux:latest(unverified), and after updating to a signed image, optionally the--enforce-container-sigpolicyswitch above.
Preinstalled apps
The Flatpak apps every install gets (Central Package, Firefox, Audacity,
Quple, β¦) are listed in /usr/share/flatpak/preinstall.d/ (Aurora's) and
overlay/etc/flatpak/preinstall.d/quine-linux.preinstall (ours), and installed by
flatpak preinstall. Aurora's flatpak-preinstall.service runs it once at
boot. On a Wi-Fi desktop that's before there's a network: every lookup fails
quietly, it ends with "Nothing to do", and the new system has no apps (a
desktop installed 2026-11-20). So NetworkManager's dispatcher
(overlay/etc/NetworkManager/dispatcher.d/90-quine-flatpak-preinstall) starts
quine-flatpak-preinstall.service, the same command, whenever a connection
comes up. Once everything's in it does nothing, and it never reinstalls an
app someone removed (Flatpak marks those as already preinstalled).
By hand: sudo flatpak preinstall -y.
App updates on launch
(Where every Quine app is published and how each updates: docs/DISTRIBUTION.md.)
A Flatpak app updates when it's opened, not on a schedule: opening it checks
its repo, and if there's a newer version, a small "Updating β¦" window
(with Skip) installs it before the app starts. It doesn't depend on the
system's own update (uupd) and nothing runs in the background. All of it is
overlay/usr/bin/quine-app-updates. It runs on its own venv,
/usr/lib/quine-linux/python, with PyGObject installed by uv from
python/uv.lock (python/pyproject.toml says how to change it).
- How launches go through it. Flatpak exports each app's menu entry
(
/var/lib/flatpak/exports/share/applications, and~/.local/share/flatpak/exports/β¦for the user's own installation).quine-app-launchers.pathnotices apps being installed or removed andquine-app-updates sync-launchersparses each entry (GLib's key file parser, as GIO reads them) and writes a copy withExec=quine-app-updates launch <app id> -- <the original flatpak run β¦>(andDBusActivatable=false, which would skip the Exec line) into/var/lib/quine-linux/app-launchersand~/.local/state/quine-linux/app-launchers. Those come first inXDG_DATA_DIRS(/usr/lib/systemd/user-environment-generators/61-quine-app-launchers,/etc/profile.d/quine-app-launchers.sh), so the menu, KRunner and pinned launchers use them.flatpak runtyped in a terminal goes around it. - Names from the menu tree. The same copies take each app's name in
the menu tree (Bazaar is Central Package there),
and the tree's
.hiddenhides an app. Only the menu entry'sNamechanges (its translations dropped); the app's own windows and the Kickoff search row "Install β¦ from Bazaar" keep the old name. - On launch: if the app is already running, nothing. Otherwise one
flatpak remote-infoagainst its remote, at most 4 seconds: no newer commit, offline, or slow, and the installed version opens at once. Otherwiseflatpak update -y <app>with the progress window; Skip stops it and opens the installed version, and a failed update says so in a notification and does the same. - New permissions: if the new version's metadata asks for access the
installed one doesn't have (
[Context], the bus policies), it asks first: Update and Open or Open Without Updating. - No password: Flatpak's polkit policy lets the person at the computer
update installed apps. An update that needs a new runtime is an install,
which Aurora's rules allow for
wheelwithout asking; anyone else gets polkit's prompt. - Opting out. Users:
quine-app-updates off(all apps) orquine-app-updates off <app id>,onto undo,statusto see (~/.config/quine-linux/app-updates.conf; an admin can set the same in/etc/quine-linux/app-updates.conf). App developers:flatpak build-finish --metadata=X-Quine=UpdateOnLaunch=false, read from the installed app's metadata.
Tested in a Fedora 44 container against a local repo (updates, permission changes, both opt-outs, offline, removed apps); not yet in a Plasma session.
Hardware-specific patches
docs/ and patches/ hold write-ups and out-of-tree kernel module patches
for hardware quirks on the machines this image runs on, that don't fit
anywhere else in this repo:
docs/imac19-2-mic-fix.mdβ the internal mic on iMac19,2 capturing near-silence despite maxed gain; root cause, fix, and current verification status.patches/snd-hda-codec-cs8409/β the vendored driver source and patch backing that fix, built intoContainerfile'skmod-builderstage.docs/imac19-2-speaker-fix.mdβ the internal speakers on iMac19,2 producing no sound at all; investigation and prior-art writeup, no fix packaged yet.
Software fork directions
Write-ups of problems found on this image that point at a fork/patch of an upstream project, kept here before anyone's had time to act on them:
docs/chromium-dbus-singleton-activation.mdβ not started: Chromium lacks D-Bus activation, so KDE + Flatpak can't dedupe a slow-starting launch, and repeated launcher clicks stack up full duplicate browser instances instead of forwarding to the existing one.