Re: Grub dilemma
On Sun, Oct 19, 2008 at 03:15:49AM +0200, Michael Wagner wrote:
> * Osamu Aoki <osamu@debian.org> 18.10.2008
>
> > This is for grub package /boot/grub/menu.lst. If you are installing
> > grub-pc, you have /boot/grub/grub.cfg
> >
> > menuentry "Debian GNU/Linux" {
> > set root=(hd0,1)
> > linux /vmlinuz root=/dev/sda1 ro
> > initrd /initrd.img
> > }
>
> Hello Osamu,
>
> these are the first lines in my /boot/grub/grub.cfg on Debian
>
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by /usr/sbin/update-grub using templates
> # from /etc/grub.d and settings from /etc/default/grub
>
> So I think it's not the right way to edit /boot/grub/grub.cfg. Better
> edit the templates in /etc/grub.d and then run "update-grub".
Yes I know that too.
"*edit* /boot/grub/grub.cfg" is not the right thing.
"*inspect* /boot/grub/grub.cfg" is good thing.
If other partition has an old broken grub configuration due to broken grub
installation caused by rc2 d-i, update-grub does not work as expected.
So as a last resort measure, we can edit it (but do not blame others if
your modificatio is overwritten by runing "update-grub".)
Osamu
Reply to: