View previous topic :: View next topic |
Author |
Message |
hdok n00b
Joined: 12 Jun 2002 Posts: 18 Location: Venlo, The Netherlands
|
Posted: Sat Jun 15, 2002 8:53 pm Post subject: reboot using grub like "lilo -R" |
|
|
Hello,
Before I used grub as a bootmanager I used lilo.
With lilo it was possible to set the reboot choice for
the next reboot.
So when I was trying new kernel stuff i mostly
typed lilo -R New_Kernel; reboot
One of the choices in my lilo menu was ofcourse New_Kernel.
Is there something simular in Grub:?: _________________ Dries.
You can have it fast, cheap or correct: pick 2 |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Jun 16, 2002 12:12 am Post subject: |
|
|
Just change the "default" line in /boot/grub/menu.lst to point to the proper kernel. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20485
|
Posted: Sun Jun 16, 2002 12:21 am Post subject: |
|
|
I'd think it would be easier to add an "experimental" boot option that points to a kernel rather than change
the default every time. Even that sounds more involved than he was looking for though. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Sun Jun 16, 2002 12:46 am Post subject: |
|
|
Well, if you were only switching between kernel versions (with the command line staying the same), you could probably put your default kernel on a symlink, and change the symlink before you reboot.
Otherwise, it might be easiest to have a file without the default line, and just
echo "default 2" > menu.lst; cat rest-of-menu.lst >> menu.lst
That should work, I think (might need another blank line at the beginning of the rest-of-menu, I'm not sure). |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Jun 16, 2002 12:56 am Post subject: |
|
|
Hmm... when I add a new kernel, I move it to /boot/bzImage-YYYY.MM.DD and add a new entry to the top of menu.lst. I have it set to "default 0", so it will use the new kernel automagically. |
|
Back to top |
|
|
hdok n00b
Joined: 12 Jun 2002 Posts: 18 Location: Venlo, The Netherlands
|
Posted: Sun Jun 16, 2002 6:37 am Post subject: |
|
|
Thanks for all your replies but maybe I did not explain exactly what I meant.
The whole point in lilo -R was that you could override your default only for the next boot.
It was like telling the bootmenu what to do in the next boot.
On my computer Windows is the default because
others use it too. I can not change the default because
the other users wouldn't understand.
Because of this I have to wait for my computer to reboot and make a selection in grub each time I boot.
Using lilo I was able to tell what to boot the next time and then reboot from the commandline.
I think this is not available in grub. _________________ Dries.
You can have it fast, cheap or correct: pick 2 |
|
Back to top |
|
|
hanno n00b
Joined: 28 Apr 2002 Posts: 15
|
Posted: Sun Jun 16, 2002 10:29 am Post subject: Why don't you use lilo? |
|
|
Well, although grub is the default for gentoo, you can still use lilo.
just
emerge lilo
change lilo.conf and run lilo. |
|
Back to top |
|
|
|