LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   grubby (https://www.linuxquestions.org/questions/fedora-35/grubby-597086/)

bic 11-04-2007 01:06 PM

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?

bic 11-09-2007 03:44 PM

Quote:

Originally Posted by bic (Post 2948016)
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?


All times are GMT -5. The time now is 12:21 AM.