Skip to main content
Topic: How to make pacman/mkinitcpio run update-grub? [Solved] (Read 2012 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to make pacman/mkinitcpio run update-grub? [Solved]

Hey guys, so my neighbours needed their computers fixed up & I got them to switch to Linux from Windows, I've made an easy little document for them so they'll know how to update config files on their own & such, but I was wondering if there's a way to automate the update-grub command after a kernel upgrade happens...

Like, add update-grub to some kind of mkinitcpio hook or something of that sort? Maybe I have my terminologies wrong...

If update-grub can't be added to mkinitcpio when mkinitcpio runs, is there a way to make update-grub happen after every pacman upgrade? If the first way is OK then ignore this 2nd way I'm suggesting.

Thank you for your time.

Re: How to make pacman/mkinitcpio run update-grub?

Reply #1
Hey guys, so my neighbours needed their computers fixed up & I got them to switch to Linux from Windows, I've made an easy little document for them so they'll know how to update config files on their own & such, but I was wondering if there's a way to automate the update-grub command after a kernel upgrade happens...

Like, add update-grub to some kind of mkinitcpio hook or something of that sort? Maybe I have my terminologies wrong...

If update-grub can't be added to mkinitcpio when mkinitcpio runs, is there a way to make update-grub happen after every pacman upgrade? If the first way is OK then ignore this 2nd way I'm suggesting.

Thank you for your time.
It's not necessary to run a grub-update when you update the kernel. The filename for the kernel does not change during update like it does in ubuntu or debian, so update-grub is not necessary on arch based distros after a kernel update.
Chris Cromer

Re: How to make pacman/mkinitcpio run update-grub?

Reply #2
Oh, I had no idea about this. I thought update-grub ran on other Arch distros but I suppose I'm wrong.
Good to know, thanks.