Hi, Le 14/04/2009 08:43:13, Sedat Dilek a écrit : > >I have chosen to generate the fitting initrd-image for a Linux-kernel >built with kernel-package via initramfs-example-scripts in >"/etc/kernel/*.d". >While testing, I discovered a problem while purging via dpkg, >"/etc/kernel/postrm.d/initramfs" is twice invoked. The first >invokation is purging the initrd-image, the second one can't because >there is no initrd-image file, anymore.
Yes, I've the same. So I've modified the initramfs script to test the
existence of the initrd before trying to delete it.
I thought it was because of cryptsetup detectig wrongly 2 candidates
for resume, but I'm not sure.
initramfs is invoked twice at the installation which is harmless and
twice while removing the package which fails the 2nd time.
--------------
Found Debian background: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.30-rc1-git6-k8-1
Found initrd image: /boot/initrd.img-2.6.30-rc1-git6-k8-1
Found linux image: /boot/vmlinuz-2.6.30-rc1-git5-k8-2
Found initrd image: /boot/initrd.img-2.6.30-rc1-git5-k8-2
Found linux image: /boot/vmlinuz-2.6.29-k8-2
Found initrd image: /boot/initrd.img-2.6.29-k8-2
Found linux image: /boot/vmlinuz-2.6.29-git12-k8-1
Found initrd image: /boot/initrd.img-2.6.29-git12-k8-1
Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead
Found memtest86+ image: /memtest86+.bin
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/010_initramfs
cryptsetup: WARNING: found more than one resume device candidate:
/dev/mapper/vg0-swap_lv
swap:/dev/mapper/vg0-swap_lv
run-parts: executing /etc/kernel/postinst.d/initramfs
cryptsetup: WARNING: found more than one resume device candidate:
/dev/mapper/vg0-swap_lv
swap:/dev/mapper/vg0-swap_lv
...
--------------
.....
>[3] Problems purging linux-image Debian-package via dpkg
>Removing the initrd-image seems to be broken, because
>"/etc/kernel/postrm.d/initramfs" is twice invoked. At the moment, I
>can't see where it comes from.
>Correlation with the scripts of initramfs-tools package?
>Any idea?
>
>>From "dpkg --purge $package" (Details see below investigations
>section):
>[...]
>run-parts: executing /etc/kernel/postrm.d/initramfs
>[...]
>run-parts: executing /etc/kernel/postrm.d/initramfs
>[...]
>
pgpdSeHP9FRzd.pgp
Description: PGP signature

