Please use dpkg-triggers for update-grub when installing or removing kernel packages
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 : | #1 |
Changed in linux (Ubuntu): | |
assignee: | nobody → Andy Whitcroft (apw) |
Andy Whitcroft (apw) wrote : | #2 |
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 |
Changed in linux (Ubuntu): | |
milestone: | later → ubuntu-15.02 |
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.02 → ubuntu-15.03 |
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.03 → ubuntu-15.08 |
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.08 → ubuntu-15.09 |
Mörgæs (moergaes) wrote : | #3 |
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.
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.09 → ubuntu-15.10 |
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.10 → ubuntu-15.11 |
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.11 → ubuntu-15.12 |
tags: | added: packaging |
tags: | removed: bot-stop-nagging |
Phillip Susi (psusi) wrote : | #5 |
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.
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.12 → ubuntu-16.01 |
Changed in linux (Ubuntu): | |
milestone: | ubuntu-16.01 → ubuntu-16.02 |
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 : | #6 |
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 : | #7 |
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 : | #8 |
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 |
Indeed. I have just removed ten old kernels which could have completed a lot quicker than it did.