Latest update grub has warning

latest update grub has warning;

:: Grub does no longer support side-loading modules when secure boot is
   enabled. Thus booting will fail, unless you have an efi executable
   'grubx64.efi' with bundled modules.
New optional dependencies for grub
    lzop: For grub-mkrescue LZO support

assuming no side-loaded modules are involved, does this warrant a fresh grub-install

Depends: are you using secure boot in your setup?
Aside from that: I always re-install grub when the package gets updated.

1 Like

is it a bad idea to automate this process as package post-installation hook?

I have this automated (works fine on all my UEFI installations):

$ cat /etc/pacman.d/hooks/grub-reinstall.hook 
[Trigger]
Operation = Upgrade
Type = Package
Target = grub

[Action]
Description = Reinstalling grub bootloader
When = PostTransaction
Depends = grub
Exec = /bin/grub-install --recheck --no-rs-codes

Beats me if this is a good idea in general.

  1. It doesn’t check for mounted efi partition (which would be a requirement I imagine).
  2. It’s untested on BIOS/legacy installations: I don’t know if the re-installation is as simple as in UEFI mode or if the device to be installed on needs to be explicitly given via a parameter.
2 Likes