Menu ▾ ▴

#30 Installer: install from the USB, no internet needed

open
nobody
None
2026-11-16
2026-11-16
Anonymous
No

Originally created by: idiazraz

The installer no longer needs the internet. Before, welcome.conf required it because installer/lib/pacstrap downloaded every package during the install. Now everything installs from the USB, and being online only adds extras.

What changed

  • Install from the medium: Calamares unpackfs copies the mounted live image (/run/archiso/airootfs, also there with copytoram) to the disk, replacing pacstrap.
  • New installer/lib/unlive (runs before the users step):
  • removes the live user and locks root's empty password
  • removes sudoers.d/live, archiso.conf, pacman-init + the gnupg tmpfs, volatile journald, do-not-suspend, the gpt-auto mask, the display-manager link and the boot-installer autostart
  • removes the skel files that only make sense live (installer pin, Welcome mask)
  • copies the kernel back to /boot (mkarchiso empties it) and sets up the pacman keyring
  • removes calamares, kriss-installer, mkinitcpio-archiso, syslinux and memtest
  • configure then builds the initramfs, Limine, snapper and Windows detection as before
  • ISO packages: added limine snapper snap-pac zram-generator bluez-utils flatpak kriss-welcome, plus rsync for unpackfs (a dependency of kriss-installer).
  • NVIDIA offline:
  • nvidia-open-dkms nvidia-utils dkms and the kernel's headers are on the ISO; build.sh swaps linux-headers along with the kernel. The live session uses the driver on Turing+.
  • A live-only udev rule loads nouveau by name for older cards, because nvidia-utils blacklists it.
  • On PCs where installer/lib/nvidia finds no Turing+ card, unlive removes the driver. I chose removing over leaving it unloaded: if it stayed, nvidia-utils would still blacklist nouveau (so pre-Turing cards would lose their driver) and DKMS would rebuild it on every kernel update.
  • Online bonus, new installer/lib/online:
  • Checks the network with curl, then runs pacman -Syu. On x86-64-v3 CPUs it also swaps the kernel for linux-kriss (+ headers if NVIDIA stayed).
  • Installs Plasma when Plasma was picked.
  • Offline, or if a download fails, it logs that updates come later and exits 0. It never fails the install.
  • Plasma: the picker now says "KDE Plasma (needs internet)" / "(perlu internet)". The description explains in EN + MS that without internet the KrissOS Shell is installed instead. configure now chooses greetd or sddm from whether plasma-desktop actually got installed, not from the picker.
  • welcome.conf: internet stays in check and is removed from required.
  • iso/build.sh no longer copies the local [kriss] repo into the image as /opt/kriss-local. Only pacstrap used it, and the image now is the branch's packages.

Tests

  • The install test now runs QEMU with -nic none for both the scripted install and the installed boot.
  • autoinstall does what unpackfs does (rsync of the live image), then unlive, online (which must report offline) and configure. It checks that the DKMS NVIDIA module was built into the image, that the driver, Calamares and the live user are gone, and that the disk boots through Limine to the KrissOS Shell greeter.
  • Also added on every install, from real-hardware findings on an ASUS X510UNR: vulkan-intel vulkan-radeon vulkan-nouveau intel-media-driver wireless-regdb. Mesa already provides the VA-API driver. lib32- variants are left out because multilib is enabled only on the installed system.
  • Not covered by CI: the online path (kernel swap, -Syu, Plasma) and the Calamares GUI run of unpackfs. The scripted test uses the same source path.

ISO size

  • Before (main, 2026-11-16): 1,558,085,632 bytes (1.45 GiB)
  • After (CI run 43856026678, all green including the offline install test): 2,158,264,320 bytes (2.01 GiB), over the 2 GiB release limit.
  • The growth is mostly NVIDIA. Arch's compressed package sizes:
  • nvidia-utils: 337 MB (1 GB installed)
  • linux-headers: 69 MB
  • gcc for DKMS: 57 MB
  • nvidia-open-dkms: 13 MB
  • The rest is under ~10 MB each: Vulkan drivers, intel-media-driver, wireless-regdb, flatpak, snapper, limine, kriss-welcome.
  • Dropping /opt/kriss-local saved a little.
  • Decision (user): NVIDIA stays on the ISO, and ISO hosting moves to SourceForge. So this PR changes iso.yml:
  • "Check ISO size" now warns only above 4 GiB, with a comment that hosting is SourceForge.
  • Over 2 GiB, "Attach to release" and "Publish preview" skip uploading the ISO itself. They still upload sha256sums.txt and the .sig files, and log a ::notice:: saying the ISO is too big for a GitHub release asset. The main/preview build no longer fails on size.
  • The ISO is still in the krissos-iso workflow artifact.
  • Follow-up, done separately: CI uploading the ISO to SourceForge over SFTP/rsync with an SSH key (needs a GitHub secret), and pointing the website's Download button at SourceForge.
  • Until that lands, the preview release has no ISO, so the current Download link breaks after this merges.

Overlap with other open PRs

  • [#28] also edits iso/install-test.sh and iso/test/autoinstall. My hunks are on different lines: the qemu array and the header comment / the pacstrap step. [#28] expects linux-kriss* kernel entries, but offline the installed kernel is the ISO's (linux today).
  • [#29] also edits iso/build.sh: I dropped the /opt/kriss-local copy and widened the kernel sed.
  • Both also edit ARCHITECTURE.md; my changes are only in the installer section.
  • Not done here (queued separately): ISO on linux-kriss-generic, legacy BIOS install.

Related

Tickets: #28
Tickets: #29

Discussion


Log in to post a comment.