Just for posterity's sake, I was able to solve my issue of older
initrd's consuming all of the space in /boot by removing the ones whose
kernel had been purged.

I had a /boot partition that was quite small and nearly every kernel
upgrade would fail with "no space left on device" messages.

-- 
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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to