Fwd: Re: Where does the update-initramfs hook get the kernel name from?
Better late than never ;)
-------- Original Message --------
Subject: Re: Where does the update-initramfs hook get the kernel name
Date: Wed, 01 Jun 2011 03:13:03 +0100
From: Philip Ashmore <firstname.lastname@example.org>
To: Philip Ashmore <email@example.com>
According to the docs you mentioned, the script gets supplied the
kernel version from
The output I get is "2.6.32-5-amd64", not "26.32.5-amd64.squeeze" as
you see above,
so the documentation must be wrong.
I finally went ahead and did an "apt-get source initramfs-tools" to
check this out
after upgrading to Wheezy.
The postinstall hook was calling "update-initramfs -u"
This script looks in $STATEDIR which is /var/lib/initramfs-tools by
versions to sort so it can get the latest one.
The problem was that if you create a few flavours yourself, delete them in
/boot and don't know about $STATEDIR then "update-initramfs -u" will forever
more tell you about non-existent versions.
The solution in this case is to delete the checksum files in $STATEDIR
the ones you already deleted in /boot.
The correct procedure is to "update-initramfs -k some-version -d".
There should probably be a Debian web page to store solutions to