LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 01:06 PM   #1
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 101

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, 03:44 PM   #2
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 101

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



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 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration