[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#524534: initramfs-tools: returns error when attempting to remove an already removed initrd

maximilian attems wrote, on 2009-04-19 01:31:
On Sat, 18 Apr 2009, Arthur Marsh wrote:

Package: initramfs-tools
Version: 0.93.2
Severity: normal

I was trying to remove a 2.6.27 kernel I had built from source and somehow the
initrd was removed before initramfs-tools tried to remove it.

can you put an "set -x" on top of /etc/kernel/postrm.d/initramfs-tools
when trying to purge that one.


Note that the kernels I had problems removing were kernels built with "make deb-pkg" rather than kernel-package's "make-kpkg".

Removing linux-2.6.28-rc9 ...
+ '[' -z 2.6.28-rc9 ']'
+ '[' -z '' ']'
+ update-initramfs -d -k 2.6.28-rc9
update-initramfs: Deleting /boot/initrd.img-2.6.28-rc9
Purging configuration files for linux-2.6.28-rc9 ...
+ '[' -z 2.6.28-rc9 ']'
+ '[' -z '' ']'
+ update-initramfs -d -k 2.6.28-rc9
Cannot delete /boot/initrd.img-2.6.28-rc9, doesn't exist.
run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 1
dpkg: error processing linux-2.6.28-rc9 (--purge):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Press return to continue.

Reply to: