Question On Booting Other Kernel

Home » CentOS » Question On Booting Other Kernel
CentOS 1 Comment

Hi, In CentOS6 I do:
echo “savedefault –default=0 –once” | grub –batch

My question is how do I do the same on CentOS7?
Any ideas?

Adrian

One thought on - Question On Booting Other Kernel

  • C7 uses grub2:

    look at the man-pages of these:
    grub2-set-default
    grub2-editenv
    grub2-reboot
    grub2-once

    Either grub2-set-default or direct via grub2-reboot with the needed params.

    – Yamaban.