Le 14/04/2009 09:35:28, Sedat Dilek a écrit :
>
>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.

It ssems better (more universal), like in the other parts of the script 
to  use $boot instead of /boot 

>+# WorksForMe: Check for '/boot/initrd.img-$version' before deletion.
>+if [ -f "/boot/initrd.img-$version" ]; then
           $boot/initrd.immg-$version



>+   update-initramfs -d -k "$version" $bootarg
>+fi

Cheers 

J-L

Attachment: pgpAMYzsOZV1H.pgp
Description: PGP signature

Reply via email to