Skip to content
UlmariaPublic

About

Click-Next installer for Ulmaria: Arch Linux with a Hyprland + end4-pC desktop

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Ulmaria installer

A full-screen, click-Next installer that runs in Hyprland on the live system. It wipes one disk and installs Arch Linux with GRUB, systemd, linux-lts, Hyprland and the end4-pC desktop (illogical-impulse + end4-pC).

Ulmaria is security and privacy first: the protections below are set up by the installer, on by default, and checked by automated tests on every push.

Security and privacy

Area What an installed system has
Disk LUKS2 encryption (default on; a switch on the Disk page), unlocked at start with the account password. Swap is inside the encrypted volume
Boot Separate /boot; a GRUB password for editing boot entries; GRUB and the kernels signed with the computer's own Secure Boot keys (sbctl)
Software sources Everything from outside Arch's signed repositories is pinned to an exact version in pins.env; prebuilt desktop packages are checksummed; ISO releases are signed
Firewall nftables: incoming connections dropped unless this computer started them. Bluetooth radio off until switched on
App confinement AppArmor enabled; Flatpak with Flathub for sandboxed apps
Kernel Hardening sysctls, memory zeroed on allocation and free (not on free in fast mode), rarely used protocols and FireWire blocked, no core dumps
Input The ydotool keystroke-injection daemon is switched off
Network A different MAC address on every network, hostname not sent, DNS over TLS (Quad9), tor and wireguard-tools installed
Desktop Background lookups removed from the shell (public IP, song lyrics, location); update counter and weather location off
Updates and recovery btrfs with a snapshot before and after every pacman transaction; daily update and vulnerability notice; a second kernel as fallback

| Memory | Compressed swap in memory (zram) ahead of the encrypted swap file; systemd-oomd stops one runaway app instead of the PC freezing |

Details, limits and how to change each part: system/usr/share/doc/ulmaria/SECURITY.md (installed as /usr/share/doc/ulmaria/SECURITY.md). On an installed system, sudo ulmaria-check verifies all of it and lists anything that is missing.

Good to know:

  • Secure Boot keys are put into the firmware only when it is in setup mode and the PC has a TPM chip (GRUB cannot start with Secure Boot on without one). Otherwise the keys are created and everything is signed, ready for sudo sbctl enroll-keys --microsoft later.
  • Strict encrypted DNS can stop hotel and airport Wi-Fi login pages from opening; the guide has the workaround.
  • The disk passphrase is typed with the console keymap; a layout without one falls back to US.
  • The on-screen keyboard needs ydotool and is therefore off.

Disk layout

UEFI BIOS
Partition 1 1 GiB FAT32, /boot (the EFI system partition) 1 MiB BIOS boot (GRUB)
Partition 2 root: LUKS2 (if encrypted) holding btrfs 1 GiB ext4, /boot
Partition 3 root: LUKS2 (if encrypted) holding btrfs

btrfs subvolumes: @ (/), @home, @log (/var/log), @pkg (pacman's package cache), @swap (a 4 GB swap file on PCs with less than 6 GB of memory). Snapshots cover @ only.

Updating a pinned version

Change the value in pins.env and push. The tests then rebuild the desktop packages for the new pin (about 30 minutes, once) and check that the privacy patches still apply to the shell. For BLACKARCH_STRAP_SHA256, read the new strap.sh before accepting its checksum.

Layout

Path What it is
app/ The installer app: Qt Quick (QML) interface + Python backend (PySide6)
app/qml/pages/ One file per step: Welcome, Language, Time zone, Disk, Account, Extras, Summary, Install, Done
app/branding.json Distro name, tagline and welcome-page features
engine/install.sh Does the actual install (partition, pacstrap, configure, GRUB, desktop). Run as root by the app
system/ Files copied onto the installed system as they are: firewall, sysctl, network privacy, ulmaria-check, the security guide
pins.env Exact versions of everything fetched from outside Arch's signed repositories
tests/ Installs in a VM and checks the result; run by .github/workflows/ci.yml
tools/make-signing-key.sh One-time setup so ISO releases are signed (already done)
signing-key.asc Public half of the ISO signing key, for verifying downloads
live/ The live session: Hyprland config that opens the installer, auto-login, launcher
sddm/ulmaria/ The login screen: an SDDM theme in the same style, installed and enabled by the engine
sddm/preview.py Preview the login screen on a Mac without SDDM (--shots DIR for screenshots)
iso-x86_64/build-iso.sh Builds the real x86_64 ISO with archiso (needs an x86_64 Arch machine)
test-arm/ ARM test build for Apple Silicon Macs: builds and drives a QEMU VM

The app talks to the engine through a settings file (mode 600, deleted on start) and reads its output: ::progress <0-100> <text> and ::error <text> lines; everything else is the log. The engine also writes its log to /var/log/ulmaria-install.log on the installed system.

Preview the interface on a Mac

cd installer
uv venv -p 3.13 .venv && uv pip install -p .venv/bin/python PySide6-Essentials
.venv/bin/python app/main.py --mock --windowed          # fake disks, fake install
.venv/bin/python app/main.py --mock --screenshots shots # render every page to PNG

Test on the Mac (ARM test build)

Official Arch is x86_64-only, so the Mac test build uses Arch Linux ARM with linux-aarch64. Everything else (app, engine, GRUB on UEFI, Hyprland, end4-pC) is the same code.

cd installer/test-arm
python3 build-live.py            # once: builds live.qcow2 (~20 min, downloads ~1.5 GB)
python3 build-live.py --patch    # after changing app/, engine/ or live/ (~2 min)
./run-vm.sh live --window        # boot the live installer in a window (blank 40 GB target disk)
./run-vm.sh target --window      # boot what was installed

vmctl.py (screenshots, clicks, typing, serial shell) and click-through.sh automate the same steps for testing.

Tests

Every push runs .github/workflows/ci.yml: lint, a render of every installer page, and four real installs in VMs (BIOS and UEFI, each encrypted and not) plus one with the desktop. Each installed system is then started and ulmaria-check runs on it; the UEFI ones with a TPM chip must start with Secure Boot enforcing. Jobs run side by side and don't stop each other; after a fix, gh run rerun <run id> --failed repeats only the jobs that failed. The desktop's packages are built once per pins.env and cached.

The same test on an x86_64 Linux machine with QEMU, OVMF, cloud-localds and python3-pexpect:

tests/install-in-vm.sh uefi 1 0      # firmware, encrypt, desktop
tests/boot-and-check.py uefi 1

Build the x86_64 ISO

On an x86_64 Arch Linux machine:

sudo pacman -S --needed archiso
sudo installer/iso-x86_64/build-iso.sh     # -> installer/iso-x86_64/out/ulmaria-*.iso

Releases built by the workflow are signed. To check a download (the key's fingerprint is DBA6 3D22 30AC F635 8206 E2F7 1054 9715 AFA0 0890):

gpg --import signing-key.asc                 # from this repository
gpg --verify SHA256SUMS.asc SHA256SUMS       # "Good signature from Ulmaria ISO signing key"
sha256sum -c SHA256SUMS                      # the ISO matches the signed checksum

The ISO boots on BIOS and UEFI PCs (Arch's releng profile), logs in to Hyprland and opens the installer. Old BIOS PCs get GRUB in BIOS mode; UEFI PCs get GRUB in UEFI mode.

The live image is compressed with zstd, not xz: compressing it took 25 minutes of a 29-minute build with xz and takes about 10 seconds now, and the live system reads faster. To keep it small it leaves out man pages, Hyprland's wallpapers, C headers, static libraries, documentation, translations other than English, about 60 tools of Arch's install ISO that the installer never calls, and the firmware for NVIDIA and AMD graphics cards (the installer's pages still draw without it, more slowly). Wi-Fi firmware is included. This only concerns the USB installer; the installed system gets the full firmware. The ISO went from 1.72 GB to 1.35 GB.

What the installer does for speed

  • Ten package downloads at a time, during the install and on the installed system; makepkg uses every CPU core.
  • While packages download, the status line shows the amount and the speed.
  • The desktop's packages are prebuilt in CI, so an install compiles nothing.
  • Fast mode (Extras page, suggested on PCs with under 6 GB of memory): no animations, blur or shadows, and memory is not wiped a second time when freed.
  • The pointer is drawn in software only on older graphics cards and in virtual machines.

The install still downloads and unpacks every package on the PC. Copying a prebuilt system image instead would cut it to a few minutes; that is planned, not done.

AI coding agents on older processors

On a processor without SSE4.2 (Core 2, Pentium Dual-Core, Athlon 64...) the official builds of opencode, Cline and Bun stop with "Illegal instruction". On such a PC the Extras page offers the builds from Ulmaria/legacy-cpu-agents instead. They are installed to /opt/legacy-cpu-agents with the commands opencode, cline and bun. The releases used and their checksums are in pins-agents.env.

Release an ISO

The ISO is not built on pushes (the build is slow); the workflow builds it only when started by hand. To build one and publish it as a pre-release, start it with "release" ticked:

gh workflow run ci.yml --ref main -f release=true

The release holds the ISO, SHA256SUMS and its signature SHA256SUMS.asc. The signing key's private half is the repository secret ISO_SIGNING_KEY and exists nowhere else; if it is ever lost or exposed, delete signing-key.asc, run tools/make-signing-key.sh again and commit the new public key.

About

Click-Next installer for Ulmaria: Arch Linux with a Hyprland + end4-pC desktop

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages