Please use dpkg-triggers for update-grub when installing or removing kernel packages

Bug #1250109 reported by Phillip Susi on 2013-11-11
108
This bug affects 23 people
Affects Status Importance Assigned to Milestone
grub2 (Debian)
Won't Fix
Unknown
grub2 (Ubuntu)
Wishlist
Andy Whitcroft
initramfs-tools (Ubuntu)
Wishlist
Andy Whitcroft
linux (Ubuntu)
Wishlist
Andy Whitcroft

Bug Description

Currently the kernel package runs update-grub every time one is installed or removed. This results in it being run a dozen times during a dist-upgrade, and this is rather time consuming and annoying. Please use a dpkg trigger to cause update-grub to be run only once.

Ken Sharp (kennybobs) wrote :

Indeed. I have just removed ten old kernels which could have completed a lot quicker than it did.

Andy Whitcroft (apw) on 2013-11-27
Changed in linux (Ubuntu):
assignee: nobody → Andy Whitcroft (apw)
Andy Whitcroft (apw) wrote :

For clarity, this would be need to be paired grub2 and initramfs-tools triggers, otherwise we really won't reduce the number of updates. Looking at a prototype, likely for V.

Changed in grub2 (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: none → later
Andy Whitcroft (apw) on 2015-01-21
Changed in linux (Ubuntu):
milestone: later → ubuntu-15.02
Andy Whitcroft (apw) on 2015-03-02
Changed in linux (Ubuntu):
milestone: ubuntu-15.02 → ubuntu-15.03
Andy Whitcroft (apw) on 2015-07-08
Changed in linux (Ubuntu):
milestone: ubuntu-15.03 → ubuntu-15.08
Andy Whitcroft (apw) on 2015-09-01
Changed in linux (Ubuntu):
milestone: ubuntu-15.08 → ubuntu-15.09
Mörgæs (moergaes) wrote :

The report is getting somewhat old. Is any work being done in this context?

The fix is one of the few that would benefit the entire user group. Would be more than welcome, especially for people using old hardware.

Andy Whitcroft (apw) on 2015-10-04
Changed in linux (Ubuntu):
milestone: ubuntu-15.09 → ubuntu-15.10
Andy Whitcroft (apw) on 2015-11-04
Changed in linux (Ubuntu):
milestone: ubuntu-15.10 → ubuntu-15.11
Andy Whitcroft (apw) on 2015-12-07
Changed in linux (Ubuntu):
milestone: ubuntu-15.11 → ubuntu-15.12
Phillip Susi (psusi) wrote :
tags: added: patch
tags: added: packaging
tags: removed: bot-stop-nagging
Phillip Susi (psusi) wrote :

FYI this was a fairly straight forward theft of the code from update-initramfs to do the same and I tested by removing several old kernels and seeing that it only ran update-grub once, then installing ( and reinstalling ) a new kernel and seeing that it still ran once. Also manual invocation of update-grub still works.

Andy Whitcroft (apw) on 2016-01-19
Changed in linux (Ubuntu):
milestone: ubuntu-15.12 → ubuntu-16.01
Andy Whitcroft (apw) on 2016-02-01
Changed in linux (Ubuntu):
milestone: ubuntu-16.01 → ubuntu-16.02
Andy Whitcroft (apw) on 2016-03-10
Changed in linux (Ubuntu):
milestone: ubuntu-16.02 → ubuntu-16.03
Changed in linux (Ubuntu):
milestone: ubuntu-16.03 → ubuntu-16.10
Mörgæs (moergaes) wrote :

Why is this change postponed again? Please inform us, is it because of difficult coding or because other bugs take precedence?

What is the status of the code contribution in post #5?

Phillip Susi (psusi) wrote :

It seems that there were other changes to grub that require the fix to be adjusted to apply properly, and nobody has done so yet ( I've been rather busy at work and with second child lately, but still hope to update this soon ).

Martin Pitt (pitti) wrote :

OK, I'll unsubscribe sponsors then. Please re-subscribe once there are updated patches. Thank you!

Changed in grub2 (Debian):
status: Unknown → Won't Fix
summary: - Please use dpkg-triggers
+ Please use dpkg-triggers for update-grub when installing or removing
+ kernel packages
Changed in linux (Ubuntu):
milestone: ubuntu-16.10 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.