update-grub and kopt / groot lines

Laurent - CyberSDF contact at cybersdf.org
Tue Aug 8 14:03:51 BST 2006


Hello all,

First sorry for my poor english.


On a laptop with a dua-boot (windows / Ubuntu) i made something like that :
/dev/hda1 => Windows
/dev/hda2 => /
/dev/hda3 => swap

after somme time the size of hda3 was too small for the user, right there
is much free place on hda1.

After partitionnement i have :
/dev/hda1 => Windows
/dev/hda2 => /home/user/data
/dev/hda3 => /
/dev/hda4 => swap

Of course i have edited my menu.lst to indicate the new location of my
root and my kernel and all work fine.

But when a kernel update came, the menu.lst was regenerated with old
values. So strange... Why this ?

After some research, quite simply, when update-grub is calling by the
kernel update operation the two lines
# kopt=root=/dev/hda3 ro
# groot=(hd0,2)
are interpreted whereas they are commented.

I think this is very awkward, and i suggest to modify this operation by
interpreting them ONLY if the line is uncomment.





More information about the ubuntu-devel mailing list