EnnoxHD / archlinux-install-guide

ArchLinux Installation Guide
MIT License
1 stars 0 forks source link

Wrong GRUB locale after kernel update #26

Closed EnnoxHD closed 3 years ago

EnnoxHD commented 3 years ago

Proposed solution: Use a pacman hook to rerun grub-mkconfig -o /boot/grub/grub.cfg after an upgrade of the kernel (linux package). In /etc/pacman.d/hooks/linuxupgrade.hook:

[Trigger]
Operation=Upgrade
Type=Package
Target=linux
[Action]
Description=Updating GRUB configuration after kernel upgrade...
When=PostTransaction
Depends=grub
Exec=/bin/sh -c "grub-mkconfig -o /boot/grub/grub.cfg"