Ordering of kernels in the "automagic" part of grub/menu.lst?

Nils Kassube kassube at gmx.net
Tue Mar 6 21:39:36 UTC 2007


On Tuesday 06 March 2007 12:08, Adam Funk wrote:
> What controls the "AUTOMAGIC" order of the kernels in
> /boot/grub/menu.lst?
>
> I have both linux-image-386 and linux-image-generic packages (and so
> their forward-moving dependencies) installed because I like to have a
> backup choice since I had trouble getting generic to boot once, but
> the 386 kernel is first in the list and gets booted by default.  How
> can I swap them around?
>
> Thanks,
> Adam

Although I don't know if it is the best way to do it, this works for me. 
In the /boot directory I have 4 symbolic links to the kernel version I 
want to use as default:

config -> config-2.6.15-23-386
initrd -> initrd.img-2.6.15-23-386
System.map -> System.map-2.6.15-23-386
vmlinuz -> vmlinuz-2.6.15-23-386

Whenever I install a new kernel the kernel version indicated by the links 
becomes the first in the automagic section and is marked as default. This 
is on Dapper, but probably it works with other versions as well.


Nils




More information about the ubuntu-users mailing list