How to Change the boot order in grub2 RHEL / CentOS 7

Issue

  • How to change the boot order in RHEL 7 / CentOS 7 / OEL 7
  • How to set default boot to windows on Dual boot on the above environments.

Solution

In boot menu, the number starts with 0, so the 3rd selection will have the number 2.

  • so to set the 3rd kernel in list as default, run the below command as root.

[sociallocker]grub2-set-default 2
[/sociallocker]

  • reboot the system, and the 3rd grub menu will be selected now by default
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Scroll to Top