LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-04-2007, 02:06 PM   #1
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 95

Rep: Reputation: 16
grubby


How do I use grubby to set a kernel to boot once then reset to another kernel?

Previously I did this on FC 5:

echo "savedefault --default=1 --once quit" | grub

grub.conf:
default saved
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title FC (2.6.18-1.2239.fc5smp)
root (hd0,0)
kernel /vmlinuz-2.6.18-1.2239.fc5smp ro root=/dev/rootvg/rootlv01
initrd /initrd-2.6.18-1.2239.fc5smp.img
savedefault

title Power Off
savedefault --default=0
halt

On FC 6, how do I tell grubby to set Power Off once?
 
Old 11-09-2007, 04:44 PM   #2
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 95

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by bic View Post
How do I use grubby to set a kernel to boot once then reset to another kernel?

Previously I did this on FC 5:

echo "savedefault --default=1 --once quit" | grub

grub.conf:
default saved
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title FC (2.6.18-1.2239.fc5smp)
root (hd0,0)
kernel /vmlinuz-2.6.18-1.2239.fc5smp ro root=/dev/rootvg/rootlv01
initrd /initrd-2.6.18-1.2239.fc5smp.img
savedefault

title Power Off
savedefault --default=0
halt

On FC 6, how do I tell grubby to set Power Off once?
Also echo "savedefault --default=1 --once quit" | grub

just doesn't work. What can I do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usage of grubby rajatgarg Programming 1 12-19-2003 02:22 PM


All times are GMT -5. The time now is 09:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration