Reparar pacman y GRUB/Limine

Reparar pacman y GRUB/Limine

Hook#

Estas actualizando como cualquier dia y aparece: error: failed to commit transaction (invalid or corrupted package (PGP signature)). O peor: cancelas un pacman -Syu con Ctrl+C y la siguiente vez te dice error: could not lock database: File exists. O al reiniciar, ves "grub rescue>". Tres errores clasicos, tres soluciones que vas a usar al menos una vez al ano en una rolling release como CachyOS. Esta leccion es tu manual de emergencia.

Reparar GRUB (sistemas viejos)#

bash
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=CachyOS
sudo grub-mkconfig -o /boot/grub/grub.cfg

Si el sistema arranca pero el menu de GRUB perdio entradas tras instalar otro kernel o tras un Windows update que piso el bootloader EFI, este es el menu que deberias volver a ver tras reinstalar:

GNU GRUB version 2.12
┌────────────────────────────────────────────────────────────────┐
CachyOS Linux
CachyOS Linux (linux-cachyos-lts)
Advanced options for CachyOS
System setup (UEFI Firmware)
└────────────────────────────────────────────────────────────────┘
Use the and keys to change the selection.
Press enter to boot the selected OS, e to edit the commands before booting or c for a command-line.
The highlighted entry will be executed automatically in 5s.

En equipos nuevos con Limine como bootloader, el menu equivalente se ve asi:

ARROWS SelectENTER BootE Edit
S Firmware SetupB Blank Entry
[-]CachyOS
|-->linux-cachyos
|-->linux-cachyos-lts
|-->EFI fallback
Kernel version: 6.18.1-2-cachyos