CentOS 7 更改内核启动顺序

方法

1. 查看当前 grub2 的启动项:

cat /boot/grub2/grub.cfg

menuentry 后面的就是启动项。

例如改为 ‘CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)’

2. 一条命令:

grub2-set-default 'CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)'

例如

grub2-set-default 'CentOS Linux (3.10.0-327.36.3.el7.x86_64) 7 (Core)'

3. 验证一下是否有用:

grub2-editenv list

将会返回:

saved_entry=CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)

3. 重启即可。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

17 + 5 =

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据