Kernel startup sequence changes after CentOS 7 kernel upgrade

Source: Internet
Author: User

Kernel startup sequence changes after CentOS 7 kernel upgrade

Upgrade CentOS 7 kernel to 3.15.5, but the default startup Item IS 3.10. Check it and modify it accordingly.

Set Windows to start by default (Change Windows to the system you want)

1. First find Windows menuentry.

# Cat/boot/grub2/grub. cfg | grep Windows

Result:

Menuentry "Windows 7 (loader) (on/dev/sda1)" -- class windows -- class OS {

2. Set Windows as the default startup Item (here you can only use the content in the double quotation marks "" or single quotation marks "in the Command output above)

# Grub2-set-default "Windows 7 (loader) (on/dev/sda1 )"

3. Verify the default startup Item

# Grub2-editenv list

Output:

Saved_entry = Windows 7 (loader) (on/dev/sda1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.