← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2114683] [NEW] dracut's update-initramfs misses deferred update by trigger

 

Public bug reported:

The initramfs-tools's version of update-initramfs starts with


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


such that postinst scripts running update-initramfs -u get converted to triggering the trigger.

The dracut version lacks that, causing duplicate initramfs generations
in a single apt run.

Please add that mechanism

** Affects: dracut (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to dracut in Ubuntu.
https://bugs.launchpad.net/bugs/2114683

Title:
  dracut's update-initramfs misses deferred update by trigger

Status in dracut package in Ubuntu:
  New

Bug description:
  The initramfs-tools's version of update-initramfs starts with

  
  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

  
  such that postinst scripts running update-initramfs -u get converted to triggering the trigger.

  The dracut version lacks that, causing duplicate initramfs generations
  in a single apt run.

  Please add that mechanism

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



Follow ups