Feat/remote repository #31

Merged
BlackAngelTV merged 87 commits from feat/remote-repository into Main 2026-11-26 19:17:25 +01:00
Owner

Merge

Merge
nocode added 40 commits 2026-11-26 17:54:49 +01:00
FWS packages were only reachable through the [fws-local] repository that
build-offi.sh injects after a local setup-aur.sh run. Declaring
repo.laxacube.ch as [fws] in the baseline and releng profiles makes them
available to any build.

The packages are not signed, so [fws] keeps the "Optional TrustAll" level
already used by [fws-local], and RemoteFileSigLevel is lowered so that
"pacman -U <url>" accepts them as well.
The [fws] repository is shared with other FWS projects (fws-deskmanager,
fws-kitty…): a database rebuilt from local-repo alone would drop their
packages once uploaded. The script starts from the online database, adds
our packages without downgrading a newer published version, and stops
when that database cannot be read. Uploading stays manual.
A build no longer needs a prior setup-aur.sh run nor a local-repo
directory: mkarchiso resolves the FWS packages through the [fws]
repository declared in the profile, and the build stops early when its
database cannot be read.

The pre-flight check derives what [fws] must provide from what [core] and
[extra] do not, so it no longer depends on a packaging tree. The Broadcom
driver is checked against the SHA-256 of the database, the only integrity
check an unsigned repository gives.
The build takes these packages from the [fws] repository and no longer
reads this tree. It also carried makepkg output (pkg/ directories,
__pycache__) that should never have been versioned.
Anaconda translates its own screens through gettext, but the FWS screens,
progress steps and end-of-install dialogs are in none of its catalogs.
They now live in one TOML file, one table per message and one entry per
language, with English required as the fallback.
t() reads $LANG on every call, where Anaconda stores the language picked
on the first screen: a screen that sets its texts each time it is shown
follows a language changed by going back. A missing key or a broken file
shows the key instead of taking the installer down.
A broken translations file only shows once the ISO boots. The checker
makes sure every message has English, that each language keeps the same
placeholders, and that no key used by the code is missing.
The official build still injected the local-repo, so it no longer built
the same image as build.sh. It now takes the FWS packages from [fws],
stops when the profile's repositories cannot be read, and checks the
installer translations first.
This module process cannot know the language picked on the first screen:
the progress spoke translates the keys at display time instead.
locale-gen now always runs: the live ships every UTF-8 locale, and only
locale-gen rebuilds the installed system's archive from its own
/etc/locale.gen instead of keeping about 190 MiB of locales.
A locale that is not generated makes Anaconda fall back to English on
every screen. /etc/locale.gen keeps its short list, so the installed
system only gets the chosen language.
The language picked on the first screen is saved to /tmp/fws-lang, so
the live session's dialogs shown after the installer has closed speak it
too.
The dialogs shown before a language is picked (low memory, waiting
screen) are in English, the fallback language of the translations.
systemd-boot needed its own copy of the kernel and initramfs in the EFI
partition; GRUB reads them straight from the ISO 9660 file system.
fws-i18n is also made executable in the image.
The image is built once and booted everywhere: xz over decompressed
modules shares one dictionary across the archive and saves about 9 MiB
over per-module zstd. The installer removes this file from the target.
Nothing reads the documentation at runtime, and the live never loads the
/boot microcode images; the installed system gets its microcode from
/usr/lib/firmware through mkinitcpio.
The installed system is a copy of the live: with [fws] declared here, the
FWS packages are updated by pacman like any other. The repository is
unsigned, so it keeps the "Optional TrustAll" level of the build profiles.
BlackAngelTV marked the pull request as ready for review 2026-11-26 17:57:37 +01:00
nocode added 47 commits 2026-11-26 18:18:33 +01:00
The FWS tools of the installed system need the same lookup as the
installer screens, but must not depend on Anaconda's folder: its path
follows Python's version and Anaconda can be removed after installing.
The language now follows gettext's order of variables, and
/etc/locale.conf for the tools started through sudo.
It loads every text of the given namespaces with a single fws-i18n call
instead of starting Python for each message, and accepts translated
yes/no answers.
waybar, polybar and i3 cannot look texts up themselves: --render writes
the texts into their configuration in the language chosen at install.
Several languages get parts of Anaconda's screens in English (Bulgarian
lacks most of the root account screen). These fill the gaps of the
screens FWS shows.
Each text is added to anaconda.mo only when Anaconda has no translation
or a copy of the English text: its own translations always win. One
catalog serves both the Python code and GtkBuilder, so the .mo is
rewritten rather than a second domain added.
Menu entries, the SDDM theme and polkit policies are read by programs
that know nothing of the FWS catalogs: every language is written into
them at build time, and each program picks its user's language.
A failure stops the build, since the login screen would show keys.
Beyond the installer file, the checker covers the system and Anaconda
files, refuses a namespace shared by two files, and checks that texts
added to Anaconda keep the markup, shortcuts and line breaks of the
English text.
iwlwifi and nouveau ship several versions of the same firmware and load
only one. The versions each driver supports are read from the
MODULE_FIRMWARE declarations of the kernel package the ISO installs, so
the list follows kernel and firmware updates.
About 90 MiB of firmware versions are never loaded by the ISO's kernel.
Any failure of that step only costs the saving, never the build.
Router and server chip firmware is never found in a PC (~47 MiB), and
nothing runs Python with -O (~7 MiB).
Upstream Anaconda lets the user screen be left empty, which would
install a system whose login screen nobody can get past, since root is
meant for repairs only. Going back to pick another language also kept
the first language's keyboard: with the keyboard screen hidden, the
layouts now always come from the language.
A language whose keyboard cannot type Latin letters now also gets a US
layout and a switch shortcut, in X11 and Hyprland alike. The waybar,
polybar and i3 labels are written in the language chosen at install.
An administrator can still set one in theme.conf.user.
VR is now set up from « Pilotes et matériel », which fws-hello already
offers.
fws-keys shows them in the session's language. The keyboard switch
options chosen at install are applied too.
« Pilotes et matériel » installs the VR base (Réalité virtuelle group)
and Steam (Jeux group): a separate VR tool duplicated it.
BlackAngelTV merged commit e2634dca71 into Main 2026-11-26 19:17:25 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FWS/FWS-ISO#31