Su's Blog

Kratos
专注于用户阅读体验的响应式博客主题
  1. Main page
  2. Uncategorized
  3. Main content

rockylinux 启动项修复

June 25, 2026 8hotness 0likes 0comments

查看一共有几个内核
[root@localhost ~]# rpm -qa | grep kernel-core
kernel-core-5.14.0-687.12.1.el9_8.x86_64
kernel-core-5.14.0-687.15.1.el9_8.x86_64
kernel-core-5.14.0-687.17.1.el9_8.x86_64

现在在用的内核
[root@localhost ~]# uname -r
5.14.0-687.12.1.el9_8.x86_64

查看有几个启动项
[root@localhost ~]# sudo grubby --info=ALL | grep kernel
kernel="/boot/vmlinuz-5.14.0-687.17.1.el9_8.x86_64"args="ro console=ttyS0,115200n8 no_timer_check net.ifnames=0 crashkernel=1G-2G:192M,2G-64G:256M,64G-:512M $tuned_params"
kernel="/boot/vmlinuz-5.14.0-687.15.1.el9_8.x86_64"args="ro console=ttyS0,115200n8 no_timer_check net.ifnames=0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M $tuned_params"
kernel="/boot/vmlinuz-5.14.0-687.12.1.el9_8.x86_64"args="ro console=ttyS0,115200n8 no_timer_check net.ifnames=0 crashkernel=1G-2G:192M,2G-64G:256M,64G-:512M $tuned_params"
kernel="/boot/vmlinuz-0-rescue-7677130562a64cecafbb1cd64587d33d"args="ro console=ttyS0,115200n8 no_timer_check net.ifnames=0 crashkernel=1G-2G:192M,2G-64G:256M,64G-:512M"
kernel="/boot/vmlinuz-5.14.0-284.11.1.el9_2.x86_64"args="ro console=ttyS0,115200n8 no_timer_check net.ifnames=0 crashkernel=1G-2G:192M,2G-64G:256M,64G-:512M"

删除内核
sudo dnf remove kernel-core-5.14.0-687.15.1.el9_8.x86_64

查看grub2启动参数
sudo grub2-editenv list

生效
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Tag: Nothing
Last updated:June 25, 2026

Su

This person is a lazy dog and has left nothing

Like
< Last article

COPYRIGHT © 2024 Su's Blog. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.