Here is a patch that works-for-me:
----- SNIP -----
--- /etc/kernel/postrm.d/initramfs.orig 2009-04-14 06:09:52.000000000 +0200
+++ /etc/kernel/postrm.d/initramfs 2009-04-14 09:30:14.000000000 +0200
@@ -28,5 +28,12 @@
bootarg="-b $boot"
fi
-#
-update-initramfs -d -k "$version" $bootarg
+# Problem description:
+# While purging a linux-image Debian package with dpkg,
+# '/etc/kernel/postrm.d/initramfs' is twice invoked.
+# For more Details see <http://bugs.debian.org/523931>.
+# Thanks Jean-Luc Coulon for the hint.
+# WorksForMe: Check for '/boot/initrd.img-$version' before deletion.
+if [ -f "/boot/initrd.img-$version" ]; then
+ update-initramfs -d -k "$version" $bootarg
+fi
----- SNAP -----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]