Hi Manoj,

Sorry for the late response - had some other projects to finish.
Your latest fix in kernel-package (short: k-p) v12.009 to
"/etc/kernel/postrm.d/initramfs" works fine, here:

[...]
# try and remove the initramfs, and do not care if it fails
update-initramfs -d -k "$version" $bootarg || true
---EOF---

Again, we learned "purge" and "remove" of Debian-packages are not the same.

Are you planning to update the documentaion and man-pages of k-p?
Seems to be missing, parts.

As an addendum, it would be worth mentioning the creation/deletion of
the according initrd-image while installing/removing/purging a
linux-image Debian-package built with k-p (see this bug-report
thread).
It should mention the interaction of
1. /etc/kernel-img.conf
2. /etc/kernel/postinst.d/initramfs
3. /etc/kernel/postrm.d/initramfs

I see "/usr/share/kernel-package/examples/etc/sample.kernel-img.conf"
as a sample which has no similarity with the "very old" one of mine
[1].
IMHO, "oldschool-users" of k-p will run in this pitfall.
As an idea, you could put a second sample-file
"sample.kernel-img.conf-with-initramfs" to honour this thread :-).

Thanks again for your help (Jean-Luc's ideas) and your work, Manoj.

Kind Regards,
Sedat

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523931#59

On Tue, Apr 14, 2009 at 6:23 PM, Manoj Srivastava <sriva...@debian.org> wrote:
> Hi,
>
>        I think this is the wrong approach. The postrm  hook is called
>  twice, one for remove, and once for purge. The better option is to
>  detect when we are being called on purge, and take no action.
>
>        I do not like testing to see the initrd exists, since it assumes
>  much about the naming if the initrd, which might be different through
>  configuration.
>
>        So I thought about why is it important for us to abort whern
>  removing the metadata about initramfs fails? This is a convenience
>  function only, and arguably we can just ignore errors. So what about
>
>  update-initramfs ... || true
>
>        to just ignore the error?
>
>        manoj
> --
> Never call a man a fool; borrow from him.
> Manoj Srivastava <sriva...@debian.org> <http://www.debian.org/~srivasta/>
> 1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C
>



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to