fix(installer): step-by-step wizard, Intel RST/VMD support, bug reports and a bootable EFI partition #17

Merged
BlackAngelTV merged 54 commits from fix/installer-wizard into Main 2026-11-03 20:33:24 +01:00
Showing only changes of commit db587b1a71 - Show all commits
@@ -306,13 +306,54 @@ def _journal_excerpt(max_lines=200):
return True, "\n".join(lines)
def _anaconda_traceback():
"""Le fichier /tmp/anaconda-tb-* le plus récent, s'il existe.
Quand l'installateur plante, la boîte de dialogue n'affiche que les cadres
d'appel de l'enveloppe dasbus : la véritable exception n'est QUE dans ce
fichier. Sans lui, un plantage d'installation est indiagnosticable à
distance — et comme le live tourne en tmpfs, tout disparaît au redémarrage.
"""
try:
names = [os.path.join("/tmp", f) for f in os.listdir("/tmp")
if f.startswith("anaconda-tb-")]
except OSError:
return ""
newest, newest_mtime = "", -1.0
for name in names:
try:
if not os.path.isfile(name):
continue
mtime = os.path.getmtime(name)
except OSError:
continue
if mtime > newest_mtime:
newest, newest_mtime = name, mtime
return newest
def _collect_diagnostics(osr):
parts = ["===== Informations système =====", _system_summary(osr)]
post_log = "/var/log/fws-post.log"
if os.path.isfile(post_log):
# Deux emplacements, et il FAUT les deux : sur le système installé le log
# est dans /var/log, mais pendant l'installation c'est le %post --nochroot
# qui le recopie dans le /tmp du live (le disque cible est démonté au moment
# où on en a besoin). N'en chercher qu'un revenait à envoyer, depuis le live,
# un rapport SANS le log qui dit si le disque va booter.
for post_log in ("/var/log/fws-post.log", "/tmp/fws-post-chroot.log"):
if not os.path.isfile(post_log):
continue
tail = _tail(post_log, 100)
if tail:
parts += ["", "===== Log d'installation FWS (fin) =====", tail]
parts += ["", "===== Log d'installation FWS (%s, fin) =====" % post_log,
tail]
break
tb_path = _anaconda_traceback()
if tb_path:
tb = _tail(tb_path, 80)
if tb:
parts += ["", "===== Plantage de l'installateur (%s, fin) ====="
% tb_path, tb]
journal_ok, journal = _journal_excerpt()
if journal:
parts += ["", "===== Journal du dernier démarrage "