[elrepo] newbie maintenance question
Danie de Jager
danie.dejager at striata.com
Wed Feb 12 14:24:29 EST 2020
Hi,
I'm wondering how to get Centos 7 to maintain the latest Elrepo Kernel as
the default kernel to boot with grub2. Seems I have to manually update the
OS grub when either newer core or elrepo kernels are installed. If I don't
complete the following steps the wrong kernel boots after a restart. What
is the better way to maintain this with minimal user intervention am I
missing something?
1. Sort the grub list of kernels
grub2-mkconfig -o /boot/grub2/grub.cfg
2. set 0 to be the default otherwise the previous 0 would boot.
grub2-set-default 0
3. Run the following to make change active
grub2-mkconfig -o /boot/grub2/grub.cfg
4. reboot
If I don't start with point 1 the newest installed kernel will move to the
top but the previous kernel will still stay the default and boot up with
the next restart.
Before running grub2-mkconfig: (1)
~ # awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core) with debugging
*CentOS Linux (5.5.3-1.el7.elrepo.x86_64) 7 (Core)CentOS Linux
(5.5.3-1.el7.elrepo.x86_64) 7 (Core) with debugging*
CentOS Linux (5.5.2-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux (5.5.2-1.el7.elrepo.x86_64) 7 (Core) with debugging
CentOS Linux (3.10.0-1062.9.1.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-1062.9.1.el7.x86_64) 7 (Core) with debugging
CentOS Linux (3.10.0-1062.4.3.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-1062.4.3.el7.x86_64) 7 (Core) with debugging
CentOS Linux (0-rescue-3c97b5caed9b49489500c2a52f64598e) 7 (Core)
CentOS Linux (0-rescue-3c97b5caed9b49489500c2a52f64598e) 7 (Core) with
debugging
After running grub2-mkconfig: (0)
~ # awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
*CentOS Linux (5.5.3-1.el7.elrepo.x86_64) 7 (Core)CentOS Linux
(5.5.3-1.el7.elrepo.x86_64) 7 (Core) with debugging*
CentOS Linux (5.5.2-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux (5.5.2-1.el7.elrepo.x86_64) 7 (Core) with debugging
CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core) with debugging
CentOS Linux (3.10.0-1062.9.1.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-1062.9.1.el7.x86_64) 7 (Core) with debugging
CentOS Linux (3.10.0-1062.4.3.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-1062.4.3.el7.x86_64) 7 (Core) with debugging
CentOS Linux (0-rescue-3c97b5caed9b49489500c2a52f64598e) 7 (Core)
CentOS Linux (0-rescue-3c97b5caed9b49489500c2a52f64598e) 7 (Core) with
debugging
*Danie de Jager*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elrepo.org/pipermail/elrepo/attachments/20200212/40bc03ac/attachment.html>
More information about the elrepo
mailing list