How to disable grub-mkconfig once and forever?

Tom H tomh0665 at gmail.com
Sat Jul 9 16:33:00 UTC 2016


On Sat, Jul 9, 2016 at 12:03 PM, Ralf Mardorf <silver.bullet at zoho.com> wrote:
> On Sat, 9 Jul 2016 11:15:52 -0400, Tom H wrote:
>>On Fri, Jul 8, 2016 at 8:48 AM, Ralf Mardorf <silver.bullet at zoho.com>
>>wrote:
>>> On Fri, 8 Jul 2016 08:25:34 -0400, Tom H wrote:
>>>> On Fri, Jul 8, 2016 at 3:55 AM, Ralf Mardorf wrote:
>>>>>
>>>>> since there seems to be no way to prevent Ubuntu from enforcing to
>>>>> install GRUB
>>>>
>>>> Why can't you pin grub (and other bootloaders) to "-1"?
>>>
>>> Does this prevent do-release-upgrade from installing GRUB?
>>
>> If grub-install isn't installed, it can't be run.
>>
>> [If pinning prevents a package or a task from being installed, you can
>> create an equivs package to provide all the relevant grub packages.]
>
> Actually I had a dummy package installed [1]. I decided to remove the
> dummy package before running do-release-upgrade. IOW grub-install
> wasn't installed before the release upgrade, it was installed by the
> release upgrade. FWIW there was no reason to use any of the dummy
> packages with 15.10. I could remove them, since nothing required
> grub-pc, gvfs or pulseaudio. They were installed just in case something
> should require one of those packages. The grub-pc package is a
> recommended dependency for the Ubuntu kernels. Assumed I should have
> kept the grub-pc dummy package installed, perhaps with a very high
> version number, perhaps epoch 2015 [2], wouldn't the release upgrade be
> confused by such a dummy package?
>
> [1]
> [rocketmouse at archlinux ~]$ ls -hAl /mnt/moonstudio/usr/src/15.04_wily/dummies/
> total 24K
> -rw-r--r-- 1 root root 185 Sep 6 2015 grub-pc
> -rw-r--r-- 1 root root 2.0K Sep 6 2015 grub-pc_09-06-moonstudio_all.deb
> -rw-r--r-- 1 root root 182 Sep 6 2015 gvfs
> -rw-r--r-- 1 root root 2.0K Sep 6 2015 gvfs_09-06-moonstudio_all.deb
> -rw-r--r-- 1 root root 188 Sep 6 2015 pulseaudio
> -rw-r--r-- 1 root root 2.0K Sep 6 2015 pulseaudio_09-06-moonstudio_all.deb
>
> [2]
> [rocketmouse at archlinux ~]$ cat /mnt/moonstudio/usr/src/15.04_wily/dummies/grub-pc
> Priority: optional
> Standards-Version: 3.9.2
>
> Package: grub-pc
> Version: 2015:09-06-moonstudio
> Maintainer: Weremouse <silver.bullet at zoho.com>
> Architecture: all
> Description: Dummy package

You should've kept the dummy package.

When I use equivs, I name the package replacing $PACKAGE
"local-$PACKAGE" and have

Package: local-$PACKAGE
Version: 1.0
Replaces: $PACKAGE
Provides: $PACKAGE

in the control file.



More information about the ubuntu-users mailing list