#578576 grub-pc: Option to never automatically run update-grub

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Harald Braumann
Date:
2010-06-05 12:42:04 UTC
Severity:
wishlist
#578576#5
Date:
2010-04-20 20:18:29 UTC
From:
To:
Please provide an option, so that update-grub is never run automatically.
Not on update, nor on kernel installation. It should be possible to manage
grub.cfg manually.

I can already opt to not install grub automatically, but update-grub is called
unconditionally.

Reasons:
- Every other update makes my system unbootable. I don't want this automatism. I'd
  like to be in control.
- I want to have different kernel command lines for different kernels. update-grub
  doesn't support this.
- I want to decide which is the default kernel. Just that a new kernel has a higher
  version doesn't mean it should become the default.
- I have systems installed on USB drives. If I update grub-pc there, I don't want
  all kernels that happen to be on the host installed in grub.cfg

Cheers,
harry

#578576#10
Date:
2010-06-05 04:48:59 UTC
From:
To:
Hi,


Attached patch for debian packaging files, adds an option to make
update-grub a no-op.

#578576#15
Date:
2010-06-05 12:39:46 UTC
From:
To:
tags 578576 wontfix
thanks

I think I would rather not make this an explicitly-advertised option,
but instead recommend that you use dpkg-divert to replace update-grub
with something trivial of your choice, such as a link to /bin/true.
Since this facility is already present in the packaging system, I would
rather recommend that you simply use it instead of adding further
complexity to the grub2 packaging (complexity => increased probability
of error).

Regards,