feat(hardware): install what the machine needs, offer the rest on a click
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>
This commit is contained in:
1 parent
441f6681c4
commit
2eb17bf598
5 files changed
+164
-22
No files matched your search
@@ -6,7 +6,9 @@
|
||||
# vivent dans fws-setup-hardware, qu'il appelle. Il n'y a donc qu'une seule
|
||||
# logique matérielle à maintenir, partagée avec le %post du kickstart.
|
||||
# fws-setup-hardware --plan <bureau> → la liste des groupes (lue ici)
|
||||
# fws-setup-hardware --all <bureau> → installation simple
|
||||
# fws-setup-hardware --all <bureau> → installation simple (TOUT le
|
||||
# détecté, codecs/jeux/VR compris : c'est le clic de l'utilisateur qui
|
||||
# les autorise, l'installateur se limite à --unattended)
|
||||
# fws-setup-hardware --groups a,b <bureau>→ installation avancée
|
||||
# fws-setup-hardware --check → vérification/réparation seule
|
||||
#
|
||||
@@ -167,7 +169,9 @@ class DriversWindow(Gtk.Window):
|
||||
"Installation simple (recommandé)",
|
||||
"FWS installe ce dont ta machine a besoin, puis s'assure que "
|
||||
"l'affichage, le son, le Bluetooth et le réseau fonctionnent. "
|
||||
"Tu n'as rien à choisir — compte quelques minutes.")
|
||||
"Ajoute aussi les codecs audio/vidéo, Steam + Wine et la réalité "
|
||||
"virtuelle : plusieurs gigaoctets, compte un bon moment selon ta "
|
||||
"connexion. Tu n'as rien à choisir.")
|
||||
simple.connect("clicked", self._on_simple)
|
||||
box.pack_start(simple, False, False, 0)
|
||||
|
||||
|
||||
Reference in new issue
Block a user