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.
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.
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.
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 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.
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".
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.
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.
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.
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.
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.
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>
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>
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>
The installer used to put in every detected group, comfort included. Codecs,
Steam, Wine, Proton, MangoHud and the VR stack are several gigabytes, and they
were downloaded during an unattended %post by people who had never asked for
them. On a slow connection that is the difference between an install that ends
and one that seems stuck.
A new --unattended mode draws the line. It is the installer's mode: it runs
with nobody in front of the screen, so it installs only what the machine does
not work without, which is drivers, sound, Wi-Fi, Bluetooth, brightness,
printing, containers and VM guest tools. The three on-demand groups, codecs,
gaming and vr, stay out of it.
They are not dropped, they are offered. "Pilotes et matériel" opens at first
boot and its simple install calls --all, which takes them. Same detection, same
script, same groups: the mode decides, so there is no second list to keep in
sync. The window's own wording now says plainly that this means several
gigabytes and a while depending on the connection.
The hardware-done marker follows the same rule. It is no longer written when
on-demand groups are still pending, because that marker is exactly what stops
the window from opening. Writing it would have installed the essentials and
then silently swallowed the offer.
Printing is now detected rather than assumed. It used to be enabled on any
machine with a desktop, which put several hundred megabytes of foomatic and
gutenprint on every laptop that has no printer. Three real signals are read
instead: a USB interface of class 07, a parallel port, or an existing CUPS
queue. A printer plugged in later is not lost, since the group stays offered
unticked in the advanced install, which can be reopened at any time. Note that
the parallel port is read from /sys/class/parport and not /dev/lp*: devtmpfs
creates lp0 through lp3 unconditionally, so the old path would have claimed a
printer on absolutely every machine.
Two checks were added where a success was being reported that did not exist.
pacman can exit 0 while a DKMS module was never built: the dkms hook runs after
unpacking, and a compile failure does not necessarily invalidate the
transaction. That is precisely the "NVIDIA driver installed but missing"
scenario, where nvidia-utils is present and the kernel module is not. dkms
status is now read and each unbuilt module is named.
A loaded module proves nothing about rendering either. The Vulkan loader still
has to find an ICD and manage to open it, and llvmpipe alone means software
rendering: it works, on the CPU, with a desktop that crawls and no playable
game and not one error message anywhere. That case is now called out. The test
is skipped rather than failed when it cannot conclude, which is when no module
is loaded or /dev/dri is absent, as in the installer chroot. OpenGL is only
reported on success, glxinfo requiring an open display it does not have under
pkexec or in a %post.
Signed-off-by: nocode <suzuku295@gmail.com>
linux-firmware covers Intel, Atheros, Realtek and the Broadcom FullMAC parts.
What it does not cover is Broadcom SoftMAC, BCM4311 through BCM4360, which only
the proprietary wl driver drives: neither b43 nor brcmsmac handles them. Those
laptops finished the install with no Wi-Fi at all, and therefore no way to
download the missing driver. The failure feeds itself.
Detection is factual rather than a PCI ID table. Such tables age badly, and
Broadcom reuses IDs across its SoftMAC and FullMAC families. The reliable
signal is that a Broadcom controller is present and the kernel produced no
wireless interface at all. The live medium runs the same kernel on the same
hardware as the target, so what is observed here holds for the installed
system.
broadcom-wl-dkms comes from the AUR, so no repository will serve it on the
target machine. build.sh drops it into the image the way it already does for
PacManager, and fws-setup-hardware installs it with pacman -U only when it sees
a mute Broadcom, then deletes the file.
It is deliberately absent from packages.x86_64. The package blacklists b43,
bcma, ssb and brcmsmac system-wide, so installing it on a machine that does
not need it would cut the Wi-Fi of the machines those very modules make work.
setup-aur.sh gains a no-install list for the same reason. build_or_skip
normally installs each package so AUR to AUR dependency chains resolve, but
this one has no dependents here and installing it would be actively harmful:
it compiles a DKMS module against the build environment's kernel, which is
pointless since the module is rebuilt on the target and fatal under set -e on
an image without linux-headers, and it drops the blacklist. On a native Arch
or WSL run that means the build machine's own Wi-Fi goes down. It is built,
published, and left alone.
The verification pass now reports on Wi-Fi: interface present, radio
unblocked, or a controller with no interface at all, which is named so the
user knows what is missing rather than assuming the card is dead.
Signed-off-by: nocode <suzuku295@gmail.com>
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>
0.7.0 is the installer release: the step-by-step wizard, its next/back
navigation, the keyboard applied immediately, the default desktop, the bug
reporting tool and every fix that stopped installations from completing
(ESP/GRUB, DNS, live services). Merged into the existing 0.7.0 section rather
than duplicated, so there is a single entry for that version.
0.8.1 is the hardware release: the driver script defects, the missing sound,
the graphical setup window, PacManager and podman.
VERSION was already at 0.8.1 but os-release still said 0.7.0 -- and os-release
is the one everything reads at runtime: the installer header, "À propos", the
bug report. Aligned, along with the .xinitrc fallback and the header examples
in the documentation.
The release notes move to changelog/ and still describe 0.7.0, which is now
accurate again after the split.
Signed-off-by: nocode <suzuku295@gmail.com>
The project no longer presents itself as a Windows replacement. FWS is a Linux
distribution that opens its arms to everyone: it refutes the idea that Linux is
complicated by making it simple from the very first boot, without taking
anything away from it -- there is a full Arch underneath and everything remains
possible on it. Running Windows applications is still a feature; it is no
longer the purpose.
Rewritten in the README opening, the "À propos" tagline, and the rationale
comments that justified choices by "FWS replaces Windows".
Technical mentions of Windows are deliberately kept: winboat and Wine,
dual-boot and os-prober, building the ISO from Windows through WSL, and the
"Windows-like step by step" phrase describing the installer -- that comparison
is still accurate, and it actually serves the new claim: the familiar is not
Windows' private property. TRADEMARKS.md is legal text and stays untouched.
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>
No NVIDIA kernel module was ever installed. "nvidia" and "nvidia-dkms" no
longer exist in the Arch repositories -- only the open modules remain
(nvidia-open, nvidia-open-dkms). The script asked for nvidia-dkms, its own
validity filter dropped it in silence, and all that got installed was
nvidia-utils: the userspace libraries with no kernel module at all. X fell back
to nouveau, which makes a recent card unusable. The generation is now derived
from the PCI id -- Turing starts at 0x1E00 while Pascal and Volta top out in
0x1Dxx -- so open modules go to Turing through the RTX 50xx Blackwell cards and
xf86-video-nouveau to anything older.
Three more defects in the same place:
- Only one vendor was served. Detection was a "case", which stops at the first
matching pattern, so on a hybrid laptop the integrated GPU got no driver at
all. Each vendor is now tested independently.
- No 32-bit drivers, although Steam and Proton games depend on them.
- libva-mesa-driver and mesa-vdpau were merged into mesa: asking for them by
their old names configured no hardware video decoding whatsoever.
And there was no sound on i3, nor on any bare window manager. The PipeWire
packages were installed but nothing ever started the server: GNOME and KDE
bring up the audio session themselves, i3, Hyprland and XFCE have no session
manager that does. The user units are now enabled with "systemctl --global", so
for existing and future accounts alike, and alsa-firmware/alsa-plugins are
installed -- some codecs stay mute without them.
The script also becomes an engine the graphical front-end can drive (--plan,
--groups, --check) so there is only one hardware logic in the project, adds a
printing group, verifies and repairs services after installing (Bluetooth
rfkill and controller, NetworkManager, cups), and NAMES packages missing from
the repositories instead of discarding them without a word -- that silence is
what hid nvidia-dkms going away.
Signed-off-by: nocode <suzuku295@gmail.com>
PacManager (FWS-PacManage 1.2.1) is packaged like fws-dnd: a local PKGBUILD
with the sources vendored in the repository, because the upstream Gitea is
private and makepkg cannot fetch from it during the build.
It is deliberately absent from packages.x86_64. On a live system one is about
to replace, a package manager serves no purpose, and it would drag qt6-base
into the squashfs for nothing. build.sh drops the built package into the image
instead, and the kickstart %post installs it into the target, then deletes the
file. Two conditions there: only when a desktop was chosen (it is a GUI
application, nothing could launch it on a command-line install), and never
blocking -- "pacman -U" resolves qt6-base over the network, and no PacManager
is not a failed installation.
The binary goes to /usr/lib/fws-pacmanage rather than /usr/bin: PluginManager
looks for its plugins in applicationDirPath()/plugins, so /usr/bin would mean a
/usr/bin/plugins directory polluting a PATH entry. Binary and plugins stay
together in a private directory and /usr/bin/fws-pacmanage is a symlink -- Qt
resolves /proc/self/exe, so the plugins are still found. Upstream ships no
.desktop file, so one is provided here.
build.sh also gains a guard: it now checks, before any lengthy step, that every
package only local-repo can provide is actually built. Until now a missing one
surfaced as a bare "target not found" from pacman, after the mirror refresh,
the full upgrade and the whole mkarchiso setup -- several minutes for an error
detectable in one second.
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>
Both the kickstart %post and fws-grub-finalize looked for the ESP with
lsblk -nro PATH,PARTTYPENAME,FSTYPE | awk '$2=="EFI System" && $3=="vfat"'
but "lsblk -r" separates columns with SPACES and an ESP's label is literally
"EFI System" -- with a space. awk therefore sees $2="EFI" and $3="System", so
the condition can never be true and no ESP was ever found. The consequences
chain: /boot/efi never mounted, install_grub returns 1, grub-install and
grub-mkconfig skipped, /boot/grub missing, and the step 4ter grub-mkconfig
fails in turn (visible in the 2026-09-06 install journal as "+ grub-mkconfig"
followed by "+ true"). This is why GRUB had to be repaired by hand in a TTY
after bare-metal installs -- the first-boot safety net carried the same bug.
Detection now reads PARTTYPE (a type CODE: GUID on GPT, 0xef on MBR, never a
space) and queries each vfat partition separately, so an empty column cannot
shift the fields either.
Also in this commit:
- /boot/grub is created before any grub-mkconfig, so the menu is generated even
when grub-install failed.
- The step 4ter grub-mkconfig no longer swallows its stderr; a failure now
lands in /var/log/fws-post.log instead of /dev/null.
- clearpart no longer forces --disklabel=msdos: the table type is left to
Anaconda/blivet, which picks it from the firmware (BIOS -> msdos, UEFI ->
gpt). Forcing MBR under UEFI is out of spec and makes dual-boot beside a
GPT Windows impossible.
- The resolv.conf copy to the target removes the destination first and copies
the CONTENT, since /etc/resolv.conf is now a symlink on both sides.
Signed-off-by: nocode <suzuku295@gmail.com>
Seventeen files that must be symlinks were checked out as plain text files
containing their target (Git for Windows creates no symlinks by default), and
have been stored that way since the repository migration. Three of them break
the installer:
- /etc/resolv.conf holds the literal string
"/run/systemd/resolve/stub-resolv.conf", so the glibc resolver finds no
nameserver at all: no DNS in the live session, and "pacman -S <desktop>"
fails in the middle of %post.
- etc/systemd/system-generators/systemd-gpt-auto-generator -> /dev/null is a
MASK. As a regular file the mask is void and systemd auto-mounts the target
disk's GPT partitions during installation.
- The dbus-org.freedesktop.* aliases and the *.target.wants/* links become
invalid units.
build.sh now rebuilds them in the build tree, so the result no longer depends
on which OS the repository was cloned on. systemd-resolved and fws-rootfsbase
are enabled alongside NetworkManager (they carry an [Install] section but no
activation link survived the migration), and NetworkManager delegates DNS to
resolved -- the same setup the %post applies to the installed system.
Signed-off-by: nocode <suzuku295@gmail.com>
- %pre : partitionnement selon la machine — cible = plus grand disque non
amovible (fini le clearpart --all qui rayait les autres disques), GPT en
UEFI / MBR en BIOS.
- airootfs : /etc/selinux/config et /etc/sysconfig/anaconda livrés — deux
tâches d'Anaconda échouaient sur la cible (FileNotFoundError stoppant la
file d'installation sur vrai matériel).
- Noyau : archiso exclut vmlinuz-linux du squashfs → chaîne de secours de
copie (bootmnt → /run/archiso → source installateur → volumes étiquetés) +
rattrapage pacman -S linux dans le %post chrooté, tout tracé dans
fws-post.log.
- mkinitcpio : le preset Arch standard est écrit AVANT tout pacman — la purge
de mkinitcpio-archiso déclenche le hook 90-mkinitcpio-install.hook
(mkinitcpio -P) ; l'ancien ordre le faisait tourner avec le preset archiso
et archiso.conf déjà supprimé (« Invalid option -c … must be readable »,
reproduit en chroot). Vérification finale : initramfs absent ⇒ CRITIQUE.
- Système installé : NetworkManager activé, systemd-networkd neutralisé,
reliques live purgées.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.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>
0.7.0 ships the post-language network picker, the bare-metal dualboot
GRUB hardening and the self-healing setup-aur. The single os-release
overlay feeds the live /etc/os-release, the installer header and the
installed system's branding.
0.7.0 ships the post-language network picker, the bare-metal dualboot
GRUB hardening and the self-healing setup-aur. The single os-release
overlay feeds the live /etc/os-release, the installer header and the
installed system's branding.
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.
Replace the complex anaconda NetworkStandaloneSpoke with a minimal
post-language "Connexion à Internet" screen: one list of detected
Wi-Fi networks plus Ethernet, click a network, enter the password,
done. Hostname typed there is kept (written to /tmp/fws-hostname and
prefilled into the User spoke via the anaconda PKGBUILD patch), and
the chosen Wi-Fi profile is copied to the installed system so it
works at first boot without re-entering the password.
Replace the complex anaconda NetworkStandaloneSpoke with a minimal
post-language "Connexion à Internet" screen: one list of detected
Wi-Fi networks plus Ethernet, click a network, enter the password,
done. Hostname typed there is kept (written to /tmp/fws-hostname and
prefilled into the User spoke via the anaconda PKGBUILD patch), and
the chosen Wi-Fi profile is copied to the installed system so it
works at first boot without re-entering the password.
Add explicit activation of systemd-timesyncd service to ensure proper clock synchronization on installed systems. This prevents clock drift issues that can affect TLS and pacman operations, and meets user expectations for accurate system time.
The service is already present in the image but inherited symlinks from the live environment may be ordinary files that systemd ignores, so explicit enablement ensures correct behavior on all installations.
Convert three systemd service configuration files from regular files to symlinks pointing to their respective system libraries. This ensures that the services reference the actual systemd unit files from /usr/lib/systemd/system rather than maintaining duplicate copies.
Add PolicyKit authorization policy file to allow fws-recovery-gui to execute fws-recovery engine via pkexec with administrative privileges. The policy uses auth_admin_keep to require authentication only once per session.
Add a new scalable SVG icon for FWS recovery application featuring a medical cross symbol in FWS brand colors (blues) on a dark background. Icon is placed in the standard hicolor scalable apps directory.
Add desktop entry file for FWS Recovery application launcher in the installed OS. Provides bilingual (French/English) interface for system repair operations including GRUB, initramfs, and pacman restoration. The application runs as a regular user with privilege escalation handled via pkexec.
Add a new script that launches an X session with Openbox and the fws-recovery-gui application. This script is executed by startx during the FWS repair boot entry, providing a minimal graphical environment with Openbox as a fallback if the GUI crashes.
Implement a graphical interface for the FWS system recovery tool using GTK3.
Features:
- Scans for FWS installations on disk
- Provides action buttons for common repairs: GRUB reinstall, initramfs
regeneration, pacman repair, and full system repair
- Displays real-time engine output in a log viewer
- Supports both root session (live mode) and regular user (pkexec elevation)
- Includes terminal access (chroot) for manual diagnostics
- Offers system reboot/poweroff controls
The GUI replaces Arch Linux branding with FWS in output for consistency
while preserving technical identifiers (package names, file paths) for
accurate diagnostics.
Enable compressed swap in RAM (zram) for the live environment to prevent memory saturation issues on systems with limited RAM. This configuration provides necessary headroom during Anaconda installation by leveraging zram's ~3:1 compression ratio on Python heaps. The configuration is automatically copied to installed systems via LiveOS payload, maintaining this safety net post-installation on modest hardware.
Add new systemd target unit for FWS system recovery mode. This target is invoked via GRUB boot menu entry "Reparer FWS" and provides a multi-user environment with network access plus recovery session. The service includes proper dependency management to ensure getty@tty1 is properly handled.
Add systemd service unit for FWS system recovery boot mode. This service handles recovery session initialization on tty1 with fallback from GUI (via startx/openbox) to console assistant if graphical startup fails. The service is only activated via fws-recovery.target kernel command line parameter and does not interfere with normal boot processes.
Add a new GRUB menu entry script that provides system recovery functionality.
The script generates a 'Réparer FWS (récupération du système)' menu entry that boots the system into fws-recovery.target with the fws.recovery=1 marker. This allows the recovery application to launch and perform system repairs via GUI or console fallback.
The script uses the fallback initramfs for maximum hardware compatibility during recovery operations, matching the UUID-based root detection logic of the standard 10_linux script.
Document the FWS recovery boot entry generated by GRUB configuration and explain how the fws-recovery.target and fws-recovery-boot.service work together. Clarify that no explicit activation is needed as the service has no [Install] section and is pulled by the target through Requires, while the desktop launcher provides an alternative way to invoke recovery.