fix(installer): create the EFI partition even with "bootloader --disabled"
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.
This commit is contained in:
1 parent
423dcc66dc
commit
1bfa432898
5 files changed
+85
-18
No files matched your search
@@ -138,9 +138,15 @@ Pour le dual boot Windows (objectif : 500 Gio libres), à la demande explicite d
|
||||
- [ ] Tester le démarrage clé débranchée, puis supprimer l'entrée firmware morte : `efibootmgr -b 0001 -B`.
|
||||
- [ ] Si menu trop chargé : désactiver le script `/etc/grub.d/*` qui génère les entrées « EFI BootNext »
|
||||
(le repérer avec `grep -l BootNext /etc/grub.d/*`), puis `grub-mkconfig`.
|
||||
- [ ] **[FWS]** L'installateur doit créer une partition EFI (≥ 512 Mio, FAT32, drapeau `esp`) sur le
|
||||
- [x] **[FWS]** L'installateur doit créer une partition EFI (≥ 512 Mio, FAT32, drapeau `esp`) sur le
|
||||
disque cible et y faire `grub-install --bootloader-id=FWS` + `--removable`, au lieu de dépendre du
|
||||
GRUB de la clé. Sans ça, toute installation FWS ne démarre qu'avec la clé branchée.
|
||||
**Fait dans FWS-ISO (branche `fix/installer-wizard`)** : cause = `bootloader --disabled` fait sauter
|
||||
la requête `efi` du partitionnement auto d'Anaconda (`skip_bootloader`) ; patch dans
|
||||
`pkgbuilds/anaconda` (pkgrel 6). De plus, `/var/log/fws-grub-finalize.log` de cette machine montre
|
||||
que GRUB avait été installé sur `/dev/sda2`, l'ESP de la clé Ventoy : le `%post` et
|
||||
`fws-grub-finalize` ne cherchent plus d'ESP sur un disque amovible. NB : `fws-intel-rst --detect`
|
||||
répond `absent` ici — ce portable n'est **pas** en mode Intel RST/VMD (NVMe branché en direct).
|
||||
- [ ] **[FWS]** Mettre `nvidia_drm.modeset=1` dans le `GRUB_CMDLINE_LINUX_DEFAULT` du template
|
||||
(`/etc/default/grub` livré par FWS n'a pas cette ligne du tout).
|
||||
- [ ] **[FWS]** Le thème « space » peut être livré par défaut (`/boot/grub/themes/space/` + les
|
||||
|
||||
Reference in new issue
Block a user