Re: update-grub problem
On Wed, May 14, 2008 at 09:43:14PM -0400, John Fleming wrote:
> I'm trying to install linux-image-2.6.18-6-686 using apt-get. I recently
> made the recommended change in /etc/kernel-img.conf to include:
>
> postinst_hook = usr/sbin/update-grub
> postrm_hook = usr/sbin/update-grub
>
> When I run the apt-get install...., the configuration fails with the error
> about
> "Could not find postinst hook script [usr/sbin/update-grub]."
>
> However, that script DOES exist in the stated path. So what gives with
> this?
What is the current working directory when this script gets run. You
told it
usr/sbin/update-grub
not
/usr/sbin/update-grub
Note the difference.
I still don't know why this is necessary. During the most recent kernel
upgrade in Etch, I watched carefully for the usual warning message about
not running /sbin/update-grub and didn't see it.
Doug.
Reply to: