[ale] GRUB, LILO, and Ubuntu: Google fails me today. :-(

fd0man™—The Magical Floppy Man fd0man at gmail.com
Sat Sep 9 20:51:25 EDT 2006


On Sat, 2006-09-09 at 17:03 -0400, fd0man??The Magical Floppy Man wrote:

> Okay, so I made a bad choice and installed my system originally with
> XFS on everything, which GRUB does not like, so Ubuntu's installer
> suggested that I go with LILO.  And so, I did.
> 
> Except, I hate LILO, and so I moved to GRUB and created an
> ext3fs /boot partition.  Alright, so I would think.  However, the
> system does not update the GRUB configuration when a new kernel is
> installed now, and this is kind of sucky.  :-/
> 
> Searching on Google has told me that there are "hook scripts" that get
> executed, but not how they are registered to execute or anything like
> that.  Does apt-get run the script?  dpkg?  The package itself?
> 
> Anyway, does anyone know how I would tell the system to
> run /sbin/update-grub when a new kernel is installed, so that I do not
> have to think to do it manually?
> 
>     Thanks!
>     Mike


A-ha!  I seem to have (finally) stumbled on the solution.  I will post
it here in case anyone else may find it to be of use.

It seems that under Debian (and consequently, Ubuntu), the system uses a
file called /etc/kernel-img.conf to configure what happens when the
kernel is played with on the system using the package manager.  So, my
problem was fixed by adding two lines to it:

postinst_hook = /sbin/update-grub
postrm_hook = /sbin/update-grub

    ? Mike

--
The fd0man??The Magical Floppy Man!
fd0man at gmail.com or mike at trausch.us ? http://trausch.us/ 
"One world, one web, one program"  ?Microsoft promotional ad 
"Ein Volk, ein Reich, ein Fuehrer"  ?Adolf Hitler 
-------------- next part --------------
An HTML attachment was scrubbed...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part




More information about the Ale mailing list