How to disable grub-mkconfig once and forever?

Colin Watson cjwatson at
Mon Jul 11 08:58:14 UTC 2016

On Fri, Jul 08, 2016 at 09:55:38AM +0200, Ralf Mardorf wrote:
> since there seems to be no way to prevent Ubuntu from enforcing to
> install GRUB, is there at least a way to prevent Ubuntu from ever
> automatically running grub-mkconfig? "Ever" means it should _never ever_
> automatically run, even not when running do-release-upgrade.

Use dpkg-divert to move /usr/sbin/update-grub aside and replace it with
a dummy script.  The GRUB packaging only ever calls grub-mkconfig via
update-grub, and if the latter is diverted using dpkg-divert then that
will persist across upgrades.

This is much less intrusive than dummy packages or anything like that.

Colin Watson                                       [cjwatson at]

More information about the ubuntu-users mailing list