November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

List/Change kernel in centos 7

List/Change kernel in centos 7

Following command can be used to list the kernels in centos 7
============================
# egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \’
Linux Server, with Linux 3.10.0-123.el7.x86_64
Linux Server, with Linux 3.10.0-123.4.4.el7.x86_64
Linux Server, with Unbreakable Enterprise Kernel 3.8.13-35.3.2.el7uek.x86_64
Linux Server, with Unbreakable Enterprise Kernel 3.8.13-35.3.1.el7uek.x86_64
Linux Server, with Linux 0-rescue-d3e0313c0f6d48a0bb72495d2x32r1
==================================

You can use grub2-set-default command to set default boot kernel, to set first kernel in grub2.cfg as default run and reboot.
===============
grub2-set-default 0
===================

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>