How to disable grub-mkconfig once and forever?

blind Pete 0123peter at gmail.com
Sun Jul 10 11:52:33 UTC 2016


Ralf Mardorf wrote:

> Hi,
> 
> 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.

It is not what you asked for, but if you have UEFI firmware you 
can install Rod Smith's rEFInd, there is a ppa for it, then your 
computer will ignore what grub does.  You can even burn it to a 
DVD to use much like the rescue LiLo floppy of olden times.  

> Since the do-release-upgrade I run yesterday enforced installing GRUB
> and seemingly damaged my FreeBSD install [1], I now will stay with
> Ubuntu's GRUB, but I at least want that the existing grub.cfg will
> never ever gets automatically changed. Neither wenn installing or
> upgrading a kernel, nor when upgrading GRUB and also not, during a
> release upgrade. _Never_!
> 
> Much better would be a way to prevent Ubuntu from ever installing GRUB.
> 
> I removed a grub-pc dummy package before running the release upgrade.
> Would it be possible to keep an empty dummy package during release
> upgrades?
> 
> Ensures disabling the os-prober by the GRUB configs, that
> grub-mkconfig (update-grup) does not edit grub.cfg at all or would it
> still do some changes to grub.cfg?
> 
> Regards,
> Ralf
> 
> [1]
> https://lists.ubuntu.com/archives/ubuntu-users/2016-July/285944.html
> 
> Indeed, I read that nowadays a backup of 512 bytes MBR isn't enough.
> When partitioning a gap of 2 MiB, at least 1 MiB is recommended.
-- 
blind Pete
Sig goes here...  





More information about the ubuntu-users mailing list