Package Details: grub-hook 2.1-1

Git Clone URL: https://aur.archlinux.org/grub-hook.git (read-only, click to copy)
Package Base: grub-hook
Description: Pacman hook to update GRUB after a kernel update
Upstream URL: https://wiki.archlinux.org/index.php/Pacman#Hooks
Licenses: GPL
Submitter: runnytu
Maintainer: runnytu
Last Packager: runnytu
Votes: 53
Popularity: 1.39
First Submitted: 2013-08-25 22:38 (UTC)
Last Updated: 2020-03-04 19:41 (UTC)

Latest Comments

« First ‹ Previous 1 2

runnytu commented on 2016-08-16 20:06 (UTC)

Bump to new version 2.0-5. @runical: First, it's necessary if you want to update the number of kernel version in config file of grub in every kernel upgrade, this is the reason for create this hook, if you don't want it, you can comment the upgrade line during the build process of package. Second, Ok but your config doesn't work, because the file target refers to a file in the package you're installing/upgrading/removing, not in a file in your local directories, my new config concerning to file vmlinuz works Ok. Third, Ok i include the command in the hook file instead of sh file.

runical commented on 2016-08-12 08:40 (UTC) (edited on 2016-08-12 08:43 (UTC) by runical)

I can't help but notice that the current hook is quite unwieldy. How about using something like [1]? Let me explain the though process. First off, you do not need to update the grub config with every update to the kernel. The new kernel image has the same name as the old kernel image, so the grub entries do not change. Second, listing all of the possible kernels is inefficient (and unwieldy, it requires you to know all possible kernel packages), so we would like to find something that all kernel updates have in common. That is that a new kernel image is generated on the /boot partition. So we trigger the hook on any change to the image files on /boot. And lastly, you do not need a separate grub.sh since you can include the command in the hook itself. I tested the hook on my system and it works, so maybe you'd like it as well. [1] https://gist.github.com/ec6abd92bd974e4729d0bbad5b0e08c0

runnytu commented on 2016-03-10 22:12 (UTC)

Bump to new version 2.0-3.