Re: grubby

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 4, 2007 11:25 AM, fuzzie1300 <fuzzie1300@xxxxxxxxxxxxx> wrote:
> 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
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

Hi  fuzzie1300,

I would probably find a good place in the shutdown process, test for
the use of the onetime kernel and then have it swap out
/boot/grub/grub.conf with one pointing to the new kernel.  Since it
looks for the use of the old kernel it would never execute again, as
if that mattered.

Good Hunting!

Tod

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux