← Back to team overview

touch-packages team mailing list archive

[Bug 152756] Re: stale files in /var/lib/initramfs-tools after removing kernel

 

I believe that comment #9 tells us this bug is no longer valid in any
active release.  Closing fixed.

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/152756

Title:
  stale files in /var/lib/initramfs-tools after removing kernel

Status in initramfs-tools package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: initramfs-tools

  Removing a kernel image and accompanying headers with apt-get remove
  --purge does not seem to remove the corresponding configuration file
  in  /var/lib/initramfs-tools. This leads to problems when either grub,
  a kernel, initramfs-tools or any other package which leads to a grub
  menu rebuild is installed, updated or removed. Eg. after having
  removed a kernel image (2.6.23-t23-04 - a homebrew image made with
  make-kpkg) this happens when I try to use apt:

  # apt-get install some_package
  E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 

  # dpkg --configure -a
  Setting up initramfs-tools (0.85eubuntu20) ...
  update-initramfs: deferring update (trigger activated)

  Processing triggers for initramfs-tools ...
  update-initramfs: Generating /boot/initrd.img-2.6.23-t23-04
  Cannot find /lib/modules/2.6.23-t23-04
  update-initramfs: failed for /boot/initrd.img-2.6.23-t23-04
  dpkg: subprocess post-installation script returned error exit status 1

  Removing the stale configuration files in /var/lib/initramfs-tools
  makes dpkg happy again

  As to whether this is a bug in initramfs-tools (which could ignore or
  remove configuration files for which no corresponding kernel image is
  found) or the kernel package (which could contain a config file
  reference to  /var/lib/initramfs-tools/version_number-release) I'll
  leave to the respective package maintainers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/152756/+subscriptions