Commit Graph
224 Commits
Author SHA1 Message Date
nocode 9722d03e82 feat(i18n): share the translations module with the installed system
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.
2026-11-26 18:18:24 +01:00
nocode 7ad68dcdae feat(repo): enable the fws repository on the live and installed systems
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.
2026-11-26 14:00:08 +01:00
nocode 63139444f6 chore(packages): drop podman from the releng image 2026-11-26 14:00:08 +01:00
nocode 0516cf705f chore(packages): drop podman from the baseline image 2026-11-26 14:00:08 +01:00
nocode 0e018acc4d perf(boot): recompress the BIOS menu splash without its metadata 2026-11-26 14:00:08 +01:00
nocode 45baf4d2f3 perf(iso): skip documentation and microcode images in releng 2026-11-26 14:00:08 +01:00
nocode 896ed22aad perf(iso): skip documentation and microcode images in baseline
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.
2026-11-26 14:00:08 +01:00
nocode 9d32263fa7 perf(iso): compress the live initramfs with xz
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.
2026-11-26 14:00:08 +01:00
nocode 9780a6ff28 chore(boot): remove the releng systemd-boot entries 2026-11-26 14:00:08 +01:00
nocode 8a21ce8ea3 chore(boot): remove the baseline systemd-boot entries 2026-11-26 14:00:08 +01:00
nocode b10251bf91 feat(boot): boot UEFI through GRUB instead of systemd-boot
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.
2026-11-26 14:00:08 +01:00
nocode 08a81f635b feat(boot): mirror the BIOS menu entries in the GRUB loopback menu 2026-11-26 14:00:08 +01:00
nocode 70cfa68743 feat(boot): mirror the BIOS menu entries in the UEFI GRUB menu 2026-11-26 14:00:07 +01:00
nocode 70b64754af feat(installer): show the end-of-install dialogs in the chosen language
The dialogs shown before a language is picked (low memory, waiting
screen) are in English, the fallback language of the translations.
2026-11-26 14:00:07 +01:00
nocode 79f32f94bc feat(installer): translate the disk support screen 2026-11-26 14:00:07 +01:00
nocode f25937f059 feat(installer): translate the summary screen 2026-11-26 14:00:07 +01:00
nocode 8482a3a7c0 feat(installer): translate the connection screen 2026-11-26 14:00:07 +01:00
nocode 2307a63d26 feat(installer): translate the desktop screen 2026-11-26 14:00:07 +01:00
nocode 50fef2d212 docs(installer): note that the desktop screen texts come from the translations 2026-11-26 14:00:07 +01:00
nocode 55be5f91e0 feat(installer): translate the wizard and ask for the desktop last
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.
2026-11-26 14:00:07 +01:00
nocode b297c435d3 feat(installer): generate every UTF-8 locale in the live
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.
2026-11-26 14:00:07 +01:00
nocode aab5ab03df feat(installer): translate the progress steps of the kickstart scripts
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.
2026-11-26 14:00:07 +01:00
nocode f01a49cc60 feat(installer): translate the progress messages and the log view 2026-11-26 14:00:06 +01:00
nocode 299039fe6f feat(installer): send the progress messages as translation keys
This module process cannot know the language picked on the first screen:
the progress spoke translates the keys at display time instead.
2026-11-26 14:00:06 +01:00
nocode c79ef4e72f feat(installer): add fws-i18n for the live session's shell dialogs 2026-11-26 14:00:06 +01:00
nocode 9ea68ef441 feat(installer): add t() to look up the installer translations
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.
2026-11-26 14:00:06 +01:00
nocode bc103f77b7 feat(installer): add the translations of the FWS installer texts
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.
2026-11-26 13:59:22 +01:00
nocode 884669720b docs(packages): note that python-crypt_r comes from [extra] in releng 2026-11-26 11:52:05 +01:00
nocode e8c95cf917 docs(packages): note that python-crypt_r comes from [extra] in baseline 2026-11-26 11:52:04 +01:00
nocode e53374cba9 feat(build): add the remote fws package repository
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.
2026-11-26 11:01:26 +01:00
nocode d201402072 feat(installer): show the installation log live from the progress screen
The progress screen says what phase is running, but when the bar stops
the user cannot tell a slow mirror from a crash without switching to a
console. A "Afficher le journal" toggle under the bar now reveals a live
tail of the FWS logs: the %pre and %post --nochroot logs on the live, and
the chrooted %post log on the target, which is where the CRITIQUE lines
about the EFI partition and the initramfs are written.

The upstream spoke is overlaid like the runtime module already is, since
an airootfs file on a package path breaks the pacstrap.
2026-11-18 08:17:13 +01:00
BlackAngelTV 913a4a071c fix(wallpaper): keep retrying the first-login wallpaper for 20 minutes
On real hardware the first Plasma login can be much slower than in a VM
(Wayland startup, slow disk, desktop installed late), so the previous
20-second window could pass with no wallpaper. Every failure was silent,
which made the cause impossible to diagnose after the fact.

The autostart entry now retries for 20 minutes, logs each attempt in
~/.local/state/fws/wallpaper.log, exposes --status, and only writes the
"done" marker after a successful apply so a later user choice is never
overwritten.
2026-11-04 08:02:00 +01:00
nocode 324d466b7d feat(hardware): ship Vulkan in the image as a base graphics driver
The installed system is a copy of the live image, and fws-setup-hardware
only completes the GPU drivers at the end of the installation when the
network is up. A machine installed offline therefore had no Vulkan ICD at
all: the desktop ran on software rendering and nothing from Steam started.

mesa, the loader, the free ICDs of every vendor, lavapipe and vulkaninfo
now travel in the image. The proprietary NVIDIA stack (DKMS) and the 32-bit
libraries (multilib) stay in fws-setup-hardware.
2026-11-03 12:18:49 +01:00
nocode 12195792f6 fix(installer): create the EFI partition even with "bootloader --disabled"
On a blank UEFI disk the installed system only booted with the USB key
plugged in (HP OMEN MAX 16, see OMEN-demarrage-sans-cle-usb.md): Anaconda
had created /boot and the LVM PV but no EFI system partition.

The kickstart disables Anaconda's bootloader because Arch has no grub2-*
binaries and GRUB is installed by the %post. Anaconda then sets
skip_bootloader, and schedule_partitions() drops the "efi" request of the
automatic partitioning ("skipping unneeded stage1 efi request"). The
anaconda PKGBUILD now patches that condition so the ESP is still created
when no stage1 partition exists yet.

The first-boot log of that machine also showed fws-grub-finalize writing
GRUB to /dev/sda2, the Ventoy key's EFI partition, because it took the
first ESP of the system. The kickstart and fws-grub-finalize now look on
the disk carrying / first, then on internal disks only, and log a
CRITICAL line instead of borrowing a removable device's ESP.
2026-11-03 12:09:09 +01:00
nocode 15550d8ab4 chore(merge): bring fix/installer-wizard up to date with Main
Main replaced WinBoat with PacManager 1.6.2 (fetched from the public Gitea,
installed under /opt and shipped in the live image) and added the install
progress steps, the Vulkan-per-GPU fix and the default emoji font. This
branch keeps everything that is specific to it: Intel RST/VMD handling
(fws-intel-rst, --no-nvram in the kickstart and fws-grub-finalize, the ESP
lookup fix), the Broadcom wl driver, fws-bugreport and the step-by-step
wizard.

Where the two sides disagreed on PacManager, Main wins: the vendored 1.4.3
tarball, the FWS launcher and the target-only install block (build.sh and
kickstart) are dropped, since the package now ships in packages.x86_64 and
the LiveOS payload copies it to the target. Launchers call PacManager, the
binary Main's package exposes on PATH.
2026-11-03 12:07:57 +01:00
BlackAngelTV b0763a69ed refactor(airootfs): drop WinBoat from the installer and hardware texts
The install summary, the hardware setup header and the About dialog still
announced Windows apps through WinBoat. They now name PacManager, which is the
package the image actually ships.
2026-10-30 10:06:42 +01:00
BlackAngelTV eb5405dc58 refactor(packages): replace winboat-bin with fws-pacmanage
WinBoat went unused, so both ISO profiles now list PacManager instead.
fws-pacmanage is built locally like the other FWS packages, so it joins the
local build order in setup-aur.sh rather than the AUR package list.
2026-10-30 10:06:42 +01:00
BlackAngelTV 86eb7af5ef fix(fastfetch): keep the standard information beside the logo
A config file replaces fastfetch's default module structure, so the FWS logo
was printed alone: no OS, kernel, CPU or disk lines at all. List the default
modules explicitly so the output looks like a normal fastfetch call, with the
FWS logo on the left and the machine's real information on the right; OS: comes
from /etc/os-release and therefore reads "FWS Linux", not "Arch Linux".
2026-10-29 21:42:46 +01:00
BlackAngelTV c7abbc6fb7 fix(build): install the pyanaconda overlays after pacstrap
mkarchiso copies the profile airootfs before it installs packages, so shipping
files that replace files owned by the anaconda package aborted the build with
"exists in filesystem" and unpacstrapped root. Keep the two overlays in a
staging directory outside the package paths and copy them from
customize_airootfs.sh, which runs after pacstrap; fail the build loudly if they
do not land, and drop the staging copy so it never reaches the ISO.
2026-10-29 21:19:18 +01:00
BlackAngelTV eadd5c2815 feat(installer): show each install phase on the progress screen
The progress screen sat on "Running post-installation scripts" for the whole
%post with a bar that never moved, so a slow desktop install looked like a
hang. The kickstart phases now publish what they are doing through
fws-install-step, the scripts task turns those percentages into one step per
phase with a message naming the running script, and the boss reserves the same
number of steps so the bar actually follows them. A title is taken from each
script's "# FWS-TITLE:" line, and progress stays cosmetic: a missing file or a
D-Bus failure falls back to the previous single step.
2026-10-29 21:09:47 +01:00
BlackAngelTV 21e0c32427 feat(fastfetch): show the FWS logo whatever launches fastfetch
The FWS logo only came from the flags passed by the login-shell hook, so
running fastfetch from a desktop terminal, a TTY or any non-login shell fell
back to the Arch logo. Move the logo (and its colours) into a system-wide
config that fastfetch reads for every account, live or installed, and keep the
hook down to a plain call. The module list is left to fastfetch defaults so it
does not rot with upstream versions; a user's own config still wins.
2026-10-29 20:42:04 +01:00
BlackAngelTV f1f05f0361 feat(fonts): ship a configured default emoji font
Emoji showed up as empty boxes almost everywhere: no emoji font was installed
by default, and nothing told fontconfig which family to use for them, so
GTK/Qt/Electron apps and the installer fell back to whatever the system had.
Install Noto Color Emoji on the live image, with the desktop transaction and in
the hardware base, and add a fontconfig rule that resolves the "emoji" family,
appends it as a last resort for generic families without displacing the primary
font, and keeps bitmap emoji enabled when a no-bitmap rule is active. The
desktop font stacks (waybar, wofi, polybar) list it explicitly, and the
fontconfig cache is refreshed after installation.
2026-10-29 20:02:55 +01:00
BlackAngelTV 1a069d6e72 fix(hardware): install Vulkan for every detected GPU
Hybrid laptops expose two GPUs, but the driver detection kept only the first
matching vendor, so the second GPU got no Vulkan ICD at all; the Vulkan loader
was never installed explicitly and 32-bit games (Steam/Proton) had no ICD on
any machine. NVIDIA also had no VA-API driver, leaving video decode on the CPU.
Detect each vendor independently, add the loader, vulkaninfo and the 32-bit
ICDs, ship libva-nvidia-driver, and log the ICDs actually present so a missing
Vulkan driver is diagnosable from the install log.
2026-10-29 19:25:04 +01:00
BlackAngelTV 89a7cf23f3 feat(installer): ship a default FWS wallpaper for fresh installs
New installs landed on a bare background (especially Hyprland and i3, which
declared no wallpaper at all), so the desktop did not look like FWS on first
boot. The image is bundled in the ISO instead of downloaded: it works without
network during the first boot, renders identically everywhere and needs no
hosting. A per-user marker stops the script once the wallpaper is set, so the
choice made afterwards by the user is never overwritten.
2026-10-29 19:07:14 +01:00
nocode db587b1a71 fix(bugreport): collect the install log from the live, and the crash traceback
A report sent from the live medium carried the system summary and the journal,
and nothing else. That is exactly what came back from a real installer crash on
RST hardware, and it was not enough to diagnose anything.

Two gaps, both of which made an installer failure unreportable.

The install log was only looked for at /var/log/fws-post.log, which exists on
the installed system. During an installation it is the %post --nochroot that
copies it into the live's /tmp, because the target disk is unmounted by the time
anyone needs to read it. Both paths are searched now. This is the log that says
whether the disk will boot.

/tmp/anaconda-tb-* was never collected at all. When the installer crashes, the
dialog shows only the dasbus wrapper frames and the real exception lives in that
file alone. The live runs in tmpfs, so it dies with the next reboot: without it
in the report, a crash cannot be looked at afterwards by anyone.

Verified on four situations: installed system, live without a crash, live with
one, and neither file present, which adds no empty section.

Signed-off-by: nocode <suzuku295@gmail.com>
2026-09-25 20:38:18 +02:00
nocode b27378eed3 fix(boot): never write NVRAM on Intel RST machines
Seen on real RST hardware: the installed system boots once, then never again,
the firmware no longer finding a bootable disk.

What is established. In the installer's chroot efivars is not reachable, so
nothing is written to NVRAM and the firmware boots EFI/BOOT/BOOTX64.EFI, which
it finds by scanning the ESP. That first boot works. Then fws-grub-finalize runs
grub-install again, and this time efivars answers: it creates a "FWS" entry and
puts it first in the boot order. That is the only thing this chain changes at
firmware level between the two boots, and firmware level is where the second
one fails.

What is assumed, not verified for lack of a VMD machine: why that entry is
unusable. Under VMD, Linux sees the NVMe in a synthetic PCI domain (10000:...)
that the vmd module creates and the firmware knows nothing about, so a device
path computed from that view resolves to nothing. "efibootmgr -v" on an
affected machine would settle it.

On any machine with an Intel VMD controller, FWS now relies solely on the
--removable path, which the first boot proves works. Detection goes through
fws-intel-rst (exit codes 10/11/12), the project's single VMD logic. Machines
without VMD are untouched and keep their NVRAM entry.

There were three NVRAM writers, and all three are gated:

- the kickstart %post, where the write fails anyway today but would break even
  the first boot in an environment that exposed efivars to the chroot;
- fws-grub-finalize, both grub-install and the efibootmgr -c fallback;
- fws-recovery, which was the worst of them. It goes through arch-chroot, and
  unlike Anaconda's chroot, arch-chroot mounts efivars, so the write succeeded
  there, from the ISO as well as from the installed system. A user whose RST
  machine would not boot would run "Réparer FWS", and the repair would recreate
  exactly the entry that stops it from booting.

Also in fws-grub-finalize: two lsblk calls took the disk from "lsblk -s", which
draws a tree, and got "└─/dev/nvme0n1" (checked on a real NVMe). The efibootmgr
fallback therefore always received a garbage device and never created its
entry, and the ESP search could fall back to the first ESP on the system,
Windows' on a dual-boot. The kickstart had already fixed this very trap in its
BIOS branch; the UEFI branch here had been missed. Fixing it alone would have
re-armed the efibootmgr writer on VMD, which is why it lands together with the
gate.

Tested by replacing the system tools with recording stubs: fws-grub-finalize
and fws-recovery each over five cases (no VMD, VMD in its three states, engine
missing), plus the engine's six detection cases. In every case the --removable
path is still installed, since on these machines it becomes the only way in.

Signed-off-by: nocode <suzuku295@gmail.com>
2026-09-22 15:56:06 +02:00
nocode 5703e731f1 docs(installer): say why "bootloader --disabled" is not enough
The comment above it claimed that flag disables Anaconda's native bootloader
step. It does not, and believing it cost whole installations.

create_bls_entries runs "grub2-mkconfig -o /etc/grub2.cfg" in the target on
every live install and raises BootloaderInstallationError on a non-zero exit
(pyanaconda/modules/storage/bootloader/utils.py). Arch ships grub-mkconfig, not
grub2-mkconfig, so the command does not exist and the install dies at
"Installing boot loader" behind a D-Bus traceback that never names the cause.

Verified against the anaconda 45.8 package in local-repo, not taken on trust.
The comment now points at the /usr/bin/grub2-mkconfig shim that handles it.

Signed-off-by: nocode <suzuku295@gmail.com>
2026-09-22 14:20:26 +02:00
nocode a9aacaa8f9 fix(installer): stop Anaconda's grub2-mkconfig from aborting the install
Even with "bootloader --disabled", Anaconda runs "grub2-mkconfig -o
/etc/grub2.cfg" in the target for live installs and aborts on failure. On
an Intel RST laptop (Omen 16 Max) this crashed the install at "Installing
boot loader", before the %post that actually configures GRUB could run.
FWS never reads that file, so the shim now skips that single call.

The crash dialog only shows dasbus wrapper frames, so the FWS debug report
now also includes the tail of /tmp/anaconda-tb-*.
2026-09-22 14:03:06 +02:00
nocode cc5a01b73c chore(iso): btop instead of htop, drop xterm from the releng list
Recorded as edited, with two facts that decide whether it ever takes effect.

This file is not the one that ships. build.sh copies configs/releng/* and then
overlays configs/baseline/* on top, and packages.x86_64 exists in both, so
baseline's copy replaces this one wholesale. baseline still lists htop and
xterm, so nothing in the built image changes until the same edit is made there.
The profiledef.sh header already carries this warning for permissions; it holds
for the package list too.

Dropping xterm should not be mirrored to baseline as it stands. It is the only
terminal in either list, no kitty, konsole, alacritty, foot or gnome-terminal
anywhere, and fws-recovery-gui calls it unguarded for its "terminal dans le
système (chroot)" button, the last-resort tool on a machine that no longer
boots. Without xterm that button raises and does nothing visible. fws-recovery
itself guards on command -v and degrades quietly, and fws-drivers keeps a
terminal fallback that would have nothing left to fall back to.

btop is fine either way, it just needs the same line in baseline to appear.

Signed-off-by: nocode <suzuku295@gmail.com>
2026-09-18 11:23:27 +02:00
nocode 10fe1df690 feat(iso): ship gparted in the live image
The live medium had parted, gptfdisk and fatresize but nothing graphical. A
disk that will not take an automatic partitioning is the one case where
someone needs to look at the table before deciding, and telling a newcomer to
do that in parted is telling them to give up. Wiping a drive and recreating a
clean GPT is also the state an installer works best from.

Also here: __pycache__/ is ignored. Running fws-drivers from its directory
leaves bytecode next to it inside airootfs, and airootfs is copied wholesale
into the image, so it would otherwise be both committed and shipped.

Signed-off-by: nocode <suzuku295@gmail.com>
2026-09-18 09:33:07 +02:00