Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reboot using grub like "lilo -R"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hdok
n00b
n00b


Joined: 12 Jun 2002
Posts: 18
Location: Venlo, The Netherlands

PostPosted: Sat Jun 15, 2002 8:53 pm    Post subject: reboot using grub like "lilo -R" Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Jun 16, 2002 12:12 am    Post subject: Reply with quote

Just change the "default" line in /boot/grub/menu.lst to point to the proper kernel.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20485

PostPosted: Sun Jun 16, 2002 12:21 am    Post subject: Reply with quote

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
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sun Jun 16, 2002 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Jun 16, 2002 12:56 am    Post subject: Reply with quote

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
View user's profile Send private message
hdok
n00b
n00b


Joined: 12 Jun 2002
Posts: 18
Location: Venlo, The Netherlands

PostPosted: Sun Jun 16, 2002 6:37 am    Post subject: Reply with quote

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 :oops: 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
View user's profile Send private message
hanno
n00b
n00b


Joined: 28 Apr 2002
Posts: 15

PostPosted: Sun Jun 16, 2002 10:29 am    Post subject: Why don't you use lilo? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum