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.
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.
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.
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.
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-*.
On most recent laptops the BIOS ships set to "RST" (also called "Optane" or
"RAID") rather than AHCI: the NVMe drive is no longer on the PCIe bus
directly, it sits behind an Intel VMD controller which creates its own PCI
domain. FWS could not install on those machines.
The advice found everywhere -- switch the BIOS to AHCI -- is both unnecessary
and often impossible. Unnecessary because the kernel has read those drives
through the vmd module since 4.5, and it is in Arch's kernel. Impossible
because plenty of BIOSes expose no such toggle at all, and because on a
dual-boot machine the change stops Windows from booting. FWS therefore never
asks for it first; it is the last resort, and the Windows consequence is
spelled out when it comes to that.
Where this really bit was the reboot, not the install. The live medium sees
the drive because its kernel loads vmd, the install runs to completion, and
then the installed machine does not come up: the initramfs has no vmd, so the
root device cannot be found before it is mounted. A silent failure, invisible
during the install itself.
fws-intel-rst holds all the logic, the way fws-setup-hardware holds the driver
logic, so there is only one detection to keep correct. It reads sysfs rather
than lspci: always present, works inside the %post chroot, and it is the only
source that gives the PCI domain, which is what proves an NVMe really is
behind the VMD rather than plugged in directly. Controllers are matched on
class plus vendor, not on device IDs, which change every generation.
The %pre loads the module before anything else, and that is the step that
makes the whole thing automatic. run_pre_scripts() is called by
/usr/bin/anaconda before the kickstart is even parsed, so before the disk
inventory and long before the UI. Without it the lsblk just below found no
drive, the target fell back to its /dev/sda default, a disk that does not
exist on these machines, and clearpart aimed at nothing, leaving no safe
default. The --ensure mode returns immediately on a machine with no VMD: no
PCI rescan, no waiting, since this sits on the startup path of every install.
The %post writes vmd and nvme into the target's MODULES before mkinitcpio
runs, and adds the mdadm_udev hook for firmware RAID volumes. Both modules are
declared explicitly instead of being left to autodetect, which works from the
modules loaded at image build time: missing vmd there shows up only at reboot,
on a machine that no longer starts.
The new installer screen, fws_rst.py, is the fallback for when even that
failed. It never shows on an ordinary machine: completed returns True as soon
as the engine says there is nothing to do, and _instantiateAction destroys any
completed standalone without displaying it. Machines with no VMD controller,
or with a working one, see nothing, so there is no extra box to understand for
the majority that needs none. When it does show, it explains the situation in
plain French with one button, and no VMD, initramfs or modprobe in any visible
string. Continue stays enabled and Précédent leads back to the network screen,
so the chain back to the keyboard choice stays whole; the wizard now resolves
that chain to the last standalone actually on the stack instead of a fixed
name.
Verified on synthetic sysfs trees, 27 cases: the four hardware states, both
false-positive guards (an Intel audio controller and a non-Intel RAID
controller), initramfs rewriting including idempotence, and the display
decision with Anaconda stubbed out. A missing engine or an unexpected exit
code shows nothing rather than worrying the user. The modprobe and PCI rescan
themselves are untested, there being no VMD controller on this machine.
Signed-off-by: nocode <suzuku295@gmail.com>
New "Pilotes et matériel" window (fws-drivers) with the two paths asked for:
a simple install that puts in whatever the machine needs and then checks and
repairs display, sound, Bluetooth, network and printing, and an advanced one
that lists the groups as checkboxes, pre-ticked from what was detected. Plus a
"check and repair only" entry that installs nothing.
It decides nothing by itself: detection and installation stay in
fws-setup-hardware, which it calls, so there is no second hardware logic to
keep in sync with the kickstart.
No terminal. A computer novice described the previous flow as scary, and she
was right -- a black screen scrolling hundreds of pacman lines with nothing
saying things were going well. Privileges now go through pkexec and a polkit
policy (the mechanism fws-recovery already used, with the authentication agent
already autostarted in the i3 and Hyprland sessions), and progress is shown in
the window itself: a spinner, a plain-French step, a line telling the user
there is nothing to do, and the raw output folded away behind "Afficher les
détails" for whoever wants it or needs to paste it into a bug report.
It opens on its own at first boot, but only when it is needed: the engine
writes /var/lib/fws/hardware-done when pacman succeeded, and --autostart
withdraws silently if that marker is there. An install that had network stays
quiet; one without -- much the more common case -- gets the window to finish
the job. A "ne plus me le proposer" box stops it for good.
Also here: Super+P opens the package manager on i3 and Hyprland, declared with
its description on Hyprland so it shows up in the fws-keys panel, and
profiledef.sh gains the executable bit for fws-drivers.
Signed-off-by: nocode <suzuku295@gmail.com>
Conflict resolution, file by file:
- interactive-defaults.ks: their %pre partitioning wins. It targets the largest
NON-REMOVABLE disk instead of "clearpart --all" (which wiped every disk,
including the user's Windows) and picks the disk label from the firmware
(UEFI -> gpt, BIOS -> msdos) instead of forcing MBR everywhere. That
supersedes my "let blivet decide" change. My GRUB fixes merged cleanly on top
and are still needed: their branch still carried the broken ESP detection
(awk on PARTTYPENAME, where "EFI System" contains a space and never matches),
in the kickstart and twice in fws-grub-finalize, which they do not touch.
- build.sh: theirs for the rsync:// mirrorlist purge, the fws-bugreport syntax
check and the systemd-networkd masking (networkd and NetworkManager were
fighting over the same interfaces on the live). Their systemd-only symlink
repair loop is dropped as redundant: the general restoration also covers
/etc/resolv.conf and the gpt-auto-generator mask, which their loop missed.
- fws-bugreport replaces my fws-report-bug, which is deleted: theirs is the
fuller tool (GTK form with a console fallback, exact JSON payload shown
before sending, journal filtering, .desktop launcher). .xinitrc keeps my
in-window buttons -- "Envoyer le rapport" and "Redémarrer" on the log window
itself, retryable without losing the report -- but they now call
fws-bugreport.
- profiledef.sh: their permission entry, mine removed with the tool.
- CHANGELOG.rst: both sets of entries. Two of mine were rewritten because the
merge made them false (my reporting tool no longer exists, and my partition
table change is superseded).
Untouched by their branch, so kept as is: the step-by-step wizard, the
next/back navigation and its transitions, the default desktop.
Signed-off-by: nocode <suzuku295@gmail.com>
When an installation fails the machine does not reboot: it stays on the log
window. Until now the user had a complete report in front of them and no way to
get it to us -- no browser, no mail client in a live session.
The log window now carries two buttons, "Envoyer le rapport aux développeurs"
and "Redémarrer". Sending does not close the window, so it can be retried after
plugging in a network cable, which is the usual reason an install failed in the
first place.
fws-report-bug POSTs to https://fws.laxacube.ch/api/bugs.php. It is written in
python3 with urllib -- no added dependency, and json.dumps escapes raw logs
containing quotes, backslashes and accents, which a shell-built JSON breaks on
at the first line. It attaches the logs (last 200000 characters: the error is
always at the end) and the detected hardware (CPU/GPU model, RAM, UEFI or BIOS,
disks, virtualisation). It never sends the user name or the host name, and the
e-mail only when one is given. Nothing is sent without an explicit click.
profiledef.sh also gains the 0755 permission entry for the new helper, since
repository files are versioned 0644.
Signed-off-by: nocode <suzuku295@gmail.com>
fws-bugreport (GTK + repli console) envoie un rapport au créateur de l'OS
via curl vers https://fws.laxacube.ch/api/bugs.php, jamais automatiquement :
l'utilisateur voit le payload JSON exact et confirme l'envoi. Infos système +
extrait du journal (filtré du bruit Anaconda, dédupliqué, plafonné par source)
joignables au rapport ; trace de chaque envoi dans /tmp/fws-bugreport.log et
vérification du code HTTP / réponse JSON (plus de faux « envoyé ✔ »). Intégré
au menu d'applications, proposé sur l'écran de debug de l'installateur
(fws-bugreport --file /tmp/fws-debug.txt), permissions dans les deux profils,
règles de fenêtres flottantes i3/Hyprland, utilisateur ajouté à
systemd-journal à l'installation.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
Three gaps left real machines booting straight into Windows after a
successful install (menu empty, no GRUB entry, no NVRAM record):
- os-prober was disabled (Arch default GRUB_DISABLE_OS_PROBER=true),
so Windows never appeared in the generated menu; the airootfs
overlay /etc/default/grub now ships GRUB_DISABLE_OS_PROBER=false.
- The %post chroot often had no ESP mounted and no efivars access, so
grub-install silently did nothing on real hardware; it now finds and
mounts an EFI FAT32 partition (including another OS's ESP, e.g.
Windows) before installing.
- No safety net remained if the first attempt failed; the kickstart
enables a new fws-grub-finalize.service that, on the installed
system's first boot, re-installs GRUB with the --removable fallback
(EFI/BOOT/BOOTX64.EFI) plus an NVRAM entry and regenerates the menu
with os-prober active - automating the manual TTY repair.
Three gaps left real machines booting straight into Windows after a
successful install (menu empty, no GRUB entry, no NVRAM record):
- os-prober was disabled (Arch default GRUB_DISABLE_OS_PROBER=true),
so Windows never appeared in the generated menu; the airootfs
overlay /etc/default/grub now ships GRUB_DISABLE_OS_PROBER=false.
- The %post chroot often had no ESP mounted and no efivars access, so
grub-install silently did nothing on real hardware; it now finds and
mounts an EFI FAT32 partition (including another OS's ESP, e.g.
Windows) before installing.
- No safety net remained if the first attempt failed; the kickstart
enables a new fws-grub-finalize.service that, on the installed
system's first boot, re-installs GRUB with the --removable fallback
(EFI/BOOT/BOOTX64.EFI) plus an NVRAM entry and regenerates the menu
with os-prober active - automating the manual TTY repair.
Add file permission entries for new recovery-related executables and grub configuration:
- /usr/local/bin/fws-recovery-session
- /usr/local/bin/fws-recovery-gui
- /etc/grub.d/42_fws-recovery
All entries set to 0:0:755 (root owner, executable).
Add file permission entries for five new utility scripts in the fws toolkit:
- fws-hello
- fws-update
- fws-updates-check
- fws-proton-ge
- fws-recovery
All scripts are configured with owner:group 0:0 and executable permission 755.
Rename fws-hypr-keys to fws-keys and extend it to support both Hyprland and i3 desktop environments. The tool now detects the session type and uses appropriate methods:
- Hyprland: queries hyprctl binds for real loaded bindings (wofi dmenu)
- i3: parses ~/.config/i3/config with variable resolution (rofi dmenu)
Update all references in configs and templates. Add VM detection warning in fws-vr-setup to prevent VR attempts in virtual machines where GPU/USB access is unavailable.
Add ttf-liberation font dependency for Steam UI stability on minimal installations and improve error guidance for Steam crashes.