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>
This commit is contained in:
1 file changed
+9
@@ -100,6 +100,15 @@ TARGET="$(lsblk -drbno NAME,SIZE,TYPE,RM 2>/dev/null \
|
||||
# grub-install / grub-mkconfig). On désactive donc l'étape native d'Anaconda.
|
||||
# L'ESP (UEFI) ou la partition bios_boot (BIOS/GPT) reste créée par le
|
||||
# partitionnement (auto ou manuel) car la plateforme l'impose.
|
||||
#
|
||||
# ⚠ « --disabled » NE SUFFIT PAS, et le croire a coûté des installations
|
||||
# entières. CreateBLSEntriesTask lance quand même « grub2-mkconfig -o
|
||||
# /etc/grub2.cfg » dans la cible à CHAQUE install live
|
||||
# (pyanaconda/modules/storage/bootloader/utils.py, create_bls_entries) : son
|
||||
# code de retour non nul fait échouer toute l'installation à l'étape
|
||||
# « Installation du chargeur de démarrage », avec une trace D-Bus illisible qui
|
||||
# ne nomme jamais la cause. D'où le shim /usr/bin/grub2-mkconfig de l'airootfs,
|
||||
# qui court-circuite CET appel précis et laisse passer tous les autres.
|
||||
bootloader --disabled
|
||||
|
||||
# Pas de section %packages : le payload LiveOS n'installe aucun paquet
|
||||
|
||||
Reference in new issue
Block a user