🏑 index : quine-global/quine-linux.git

quine-linux

Quine distro of Linux based on uBlue Aurora

Building

The image is built in two repos:

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:

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:

  1. It starts rpm.yml in the three app repos at once and waits for all of them; if one fails, it stops there and links the run.
  2. Then it starts this repo's iso.yml and 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.

overlay/

Files here mirror their path on the root filesystem and are baked into the image via COPY overlay/ / in the Containerfile.

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):

~/.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:

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:

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.Quple
  Utilities/
    Central Package     io.github.kolunmi.Bazaar
  Other/
    .everything-else    every app placed nowhere else
  .hidden               IDs in no folder and not found by search

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):

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):

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).

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).

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:

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: