Bug#338371: What is wrong?

John Plate plate at ache.dk
Thu Nov 10 13:04:28 UTC 2005


Otavio Salvador wrote:

> I didn't understand what update-grub did wrong. kopt comment express
> exactly what it intend to do and looks like it did its job.

The problem is that, fx after installation, you have entries that can
boot the system. 

If #kopt is changed and a homecompiled kernel is installed
(kernel-package) and removed (dpkg --purge) then the original entries
are changed according to the new #kopt setting.

Then the system may become impossible to boot.

If you 1) install the official way, 2) install raid (as this is not
possible with my system because of other bugs) 3) compile a kernel the
official way and de-install the new kernel, the system cannot boot.

This must be a bug. Settings should reflect changes to menu.lst - NOT
old entries. Apparently grub mess up the entries in menu.lst. 

John

> If you want to have a different root entry, you should fix  the
> menu.lst comments. For example, in my i386 system I have:
 
> ## ## Start Default Options ##
> ## default kernel options
> ## default kernel options for automagic boot options
> ## If you want special options for specific kernels use kopt_x_y_z
> ## where x.y.z is kernel version. Minor versions can be omitted.
> ## e.g. kopt=root=/dev/hda1 ro
> # kopt=root=/dev/hda2 ro vga=791
> 
> and update-grub worked fine. It made the following entry:
> 
> ## ## End Default Options ##
> 
> title           Debian GNU/Linux, kernel 2.6.14-1-k7
> root            (hd0,0)
> kernel          /vmlinuz-2.6.14-1-k7 root=/dev/hda2 ro vga=791 <= LOOK HERE
> initrd          /initrd.img-2.6.14-1-k7
> savedefault
> boot
> 
> As you can see, update-grub used the kopt comment to fill the need
> option to my kernel.
> 
> Please, explain what you did, and maybe, include your menu.lst file to
> me be able to see what and why it fail.
> 
> Thanks
> 
> -- 
>         O T A V I O    S A L V A D O R
> ---------------------------------------------
>  E-mail: otavio at debian.org      UIN: 5906116
>  GNU/Linux User: 239058     GPG ID: 49A5F855
>  Home Page: http://www.freedom.ind.br/otavio
> ---------------------------------------------
> "Microsoft gives you Windows ... Linux gives
>  you the whole house."




More information about the Pkg-grub-devel mailing list