Grub hook failed

Hi!

So there was a grub update and it is recommended to install grub again and then make the config.
In this thread

@dalto postet a grub hook to put it as grub.hook inside /etc/pacman.d/hooks/

[Trigger]
Operation = Upgrade

Type = Package
Target = grub

[Action]
Description = Re-install grub on update
When = PostTransaction
Depends = grub
Exec = sh -c "grub-install --no-nvram && grub-mkconfig -o /boot/grub/grub.cfg"

but it (sorry) doesn’t work for me.
By updating system (sudo pacman -Syu) I get an error message:
Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
means in english: Can’t call execv (File or Folder not found)

So what is going wrong?

Greetings,
Tariin

It probably needs to be /bin/sh instead of sh

3 Likes

Yes this is the issue (also forgot to mention it in my previous issue sorry)

1 Like

oki doki :slight_smile:
I changed it to /bin/bash

Next time on updating grub … hopeful :slight_smile:
Thanks guys!

P.S. every day I learn something new … that’s great (most times :slight_smile: )

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.