Better late than never ;)

-------- Original Message --------
Subject: Re: Where does the update-initramfs hook get the kernel name from?
Date:   Wed, 01 Jun 2011 03:13:03 +0100
From:   Philip Ashmore <[email protected]>
To:     Philip Ashmore <[email protected]>



 According to the docs you mentioned, the script gets supplied the
 kernel version from

 "uname -r".

 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.

 Philip


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
default, for
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
that match
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
problems like
this.

Regards,
Philip



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to