How to make pacman/mkinitcpio run update-grub? [Solved] 03 May 2018, 22:03:23 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. Last Edit: 02 June 2018, 17:08:09 by kenny_w
Re: How to make pacman/mkinitcpio run update-grub? Reply #1 – 04 May 2018, 03:29:13 Quote from: kenny_w – on 03 May 2018, 22:03:23Hey 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.
Re: How to make pacman/mkinitcpio run update-grub? Reply #2 – 11 May 2018, 15:21:06 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.