[Bug 1250109] Re: Please use dpkg-triggers for update-grub when installing or removing kernel packages

Julian Andres Klode 1250109 at bugs.launchpad.net
Tue Nov 14 18:54:01 UTC 2023


@Andy I'm unassigning you and changing the bug status as the initramfs
part has been resolved, update-initramfs does

if [ -n "$DPKG_MAINTSCRIPT_PACKAGE" ] && [ $# = 1 ] && [ "$1" = -u ]; then
        if dpkg-trigger --no-await update-initramfs; then                                                
                echo "update-initramfs: deferring update (trigger activated)"                            
                exit 0                              
        fi                                                                                               
fi                                                                                                       

We can patch grub  to do the same

** Changed in: initramfs-tools (Ubuntu)
       Status: Triaged => Fix Released

** Changed in: linux (Ubuntu)
       Status: Triaged => Invalid

** Changed in: initramfs-tools (Ubuntu)
     Assignee: Andy Whitcroft (apw) => (unassigned)

** Changed in: linux (Ubuntu)
     Assignee: Andy Whitcroft (apw) => (unassigned)

** Changed in: grub2 (Ubuntu)
     Assignee: Andy Whitcroft (apw) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1250109

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

Status in grub2 package in Ubuntu:
  Triaged
Status in initramfs-tools package in Ubuntu:
  Fix Released
Status in linux package in Ubuntu:
  Invalid
Status in grub2 package in Debian:
  Won't Fix

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1250109/+subscriptions




More information about the foundations-bugs mailing list