Latest kernel does not show up in boot menu

General support questions
stargazer
Posts: 10
Joined: 2017/03/08 07:18:52

Latest kernel does not show up in boot menu

Post by stargazer » 2017/04/20 19:10:17

The latest kernels that were installed using "yum update" do not show up in the boot menu. There are menu entries for the 3.10.0-514 kernels in the grub.cfg file, but they do no show up in the boot menu. I didn't set up my computer, so I'm not entirely sure if I'm using grub2 as the boot loader.

Here is the output from running the bootinfoscript (http://bootinfoscript.sourceforge.net/):

Code: Select all

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT16
    Boot sector info:  According to the info in the boot sector, sda1 starts 
                       at sector 0. But according to the info from fdisk, 
                       sda1 starts at sector 2048.
    Operating System:  
    Boot files:        /efi/BOOT/fallback.efi /efi/centos/gcdx64.efi 
                       /efi/centos/grubx64.efi /efi/centos/MokManager.efi 
                       /efi/centos/shim-centos.efi /efi/centos/shim.efi

sda2: __________________________________________________________________________

    File system:       xfs
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub2/grub.cfg

sda3: __________________________________________________________________________

    File system:       LVM2_member
    Boot sector type:  -
    Boot sector info: 

centos-swap': __________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

centos-home': __________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''

centos-root': __________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1 1,953,525,167 1,953,525,167  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048       411,647       409,600 EFI System partition
/dev/sda2         411,648     1,435,647     1,024,000 Data partition (Windows/Linux)
/dev/sda3       1,435,648 1,953,523,711 1,952,088,064 Logical Volume Manager (LVM) partition (Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/mapper/centos-home 58d26289-d852-4627-b2ba-18780a7693e6   xfs        
/dev/mapper/centos-root 0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc   xfs        
/dev/mapper/centos-swap 15a5294b-69b6-46ed-a606-15fc82de7336   swap       
/dev/sda1        2243-2F0F                              vfat       
/dev/sda2        33e8324a-3501-405c-9814-cdf9f6ad1bde   xfs        
/dev/sda3        r2DG0k-Yqv2-kHqB-zW0v-RtJF-zcJe-EPNodg LVM2_member 

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
centos-home
centos-root
centos-swap
control

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/mapper/centos-home /home                    xfs        (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/centos-root /                        xfs        (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/sda2        /boot                    xfs        (rw,relatime,seclabel,attr2,inode64,noquota)


============================= sda2/grub2/grub.cfg: =============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
### END /etc/grub.d/00_tuned ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'CentOS Linux (3.10.0-514.16.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.16.1.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.16.1.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.16.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-514.10.2.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.10.2.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.10.2.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.10.2.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-514.6.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.6.1.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.6.1.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.6.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-327.28.2.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.28.2.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-327.28.2.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-327.28.2.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-327.4.4.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.4.4.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-327.4.4.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-327.4.4.el7.x86_64.img
}
menuentry 'CentOS Linux (0-rescue-356c18c5695146f1b3de2179c552e231) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-356c18c5695146f1b3de2179c552e231-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-0-rescue-356c18c5695146f1b3de2179c552e231 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-0-rescue-356c18c5695146f1b3de2179c552e231.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on centos-swap'


Unknown BootLoader on centos-home'


Unknown BootLoader on centos-root'



=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-6WwCx5Ni/Tmp_Log: No such file or directory
  Failed to find logical volume "centos/swap'"
  Failed to find logical volume "centos/swap'"
  Failed to find logical volume "centos/swap'"
hexdump: /dev/mapper/centos-swap': No such file or directory
hexdump: stdin: Bad file descriptor
hexdump: /dev/mapper/centos-swap': No such file or directory
hexdump: all input file arguments failed
  Failed to find logical volume "centos/home'"
  Failed to find logical volume "centos/home'"
  Failed to find logical volume "centos/home'"
hexdump: /dev/mapper/centos-home': No such file or directory
hexdump: stdin: Bad file descriptor
hexdump: /dev/mapper/centos-home': No such file or directory
hexdump: all input file arguments failed
  Failed to find logical volume "centos/root'"
  Failed to find logical volume "centos/root'"
  Failed to find logical volume "centos/root'"
hexdump: /dev/mapper/centos-root': No such file or directory
hexdump: stdin: Bad file descriptor
hexdump: /dev/mapper/centos-root': No such file or directory
hexdump: all input file arguments failed
mdadm: No arrays found in config file or automatically
Does anyone have any suggestions for how to get kernel-3.10.0-514.16.1.el7.x86_64 to show up in the boot menu?

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Latest kernel does not show up in boot menu

Post by TrevorH » 2017/04/20 20:26:14

Are you using Linux software RAID for your /boot partition?

Where do the symlinks /etc/grub2.cfg and /etc/grub2-efi.cfg point to?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

stargazer
Posts: 10
Joined: 2017/03/08 07:18:52

Re: Latest kernel does not show up in boot menu

Post by stargazer » 2017/04/20 20:41:53

How do I find out if I'm using the LINUX software raid for my /boot partition?

Here is the information for the symbolic links (/etc/grub2.cfg doesn't exist):

Code: Select all

# ls -la /etc/grub2-efi.cfg 
lrwxrwxrwx. 1 root root 31 Mar  3 01:42 /etc/grub2-efi.cfg -> ../boot/efi/EFI/centos/grub.cfg

# ls -la ../boot/efi/EFI/centos/grub.cfg
-rw-r--r--. 1 root root 7786 Apr 20 09:41 ../boot/efi/EFI/centos/grub.cfg
I updated the file this morning using the following command, but the symbolic link already existed:
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

There is also a similar config file located at /boot/grub2/grub.cfg.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Latest kernel does not show up in boot menu

Post by TrevorH » 2017/04/20 21:32:12

And which of those two files contents most closely corresponds with the menu you see at boot time?

Look in /proc/mdstat for details of any software RAID arrays you might be using.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

stargazer
Posts: 10
Joined: 2017/03/08 07:18:52

Re: Latest kernel does not show up in boot menu

Post by stargazer » 2017/04/20 22:39:20

The two config files appear to be the same. They both include menu entries for the 3.10.0-514 kernels but only the 3.10.0-327 and rescue kernels show up in the boot menu though.

Code: Select all

cat /boot/efi/EFI/centos/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
### END /etc/grub.d/00_tuned ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'CentOS Linux (3.10.0-514.16.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.16.1.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.16.1.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.16.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-514.10.2.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.10.2.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.10.2.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.10.2.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-514.6.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.6.1.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.6.1.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.6.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-327.28.2.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.28.2.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-327.28.2.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-327.28.2.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-327.4.4.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.4.4.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-327.4.4.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-327.4.4.el7.x86_64.img
}
menuentry 'CentOS Linux (0-rescue-356c18c5695146f1b3de2179c552e231) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-356c18c5695146f1b3de2179c552e231-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-0-rescue-356c18c5695146f1b3de2179c552e231 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-0-rescue-356c18c5695146f1b3de2179c552e231.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Code: Select all

cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
### END /etc/grub.d/00_tuned ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'CentOS Linux (3.10.0-514.16.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.16.1.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.16.1.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.16.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-514.10.2.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.10.2.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.10.2.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.10.2.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-514.6.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.6.1.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-514.6.1.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-514.6.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-327.28.2.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.28.2.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-327.28.2.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-327.28.2.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-327.4.4.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.4.4.el7.x86_64-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-3.10.0-327.4.4.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-3.10.0-327.4.4.el7.x86_64.img
}
menuentry 'CentOS Linux (0-rescue-356c18c5695146f1b3de2179c552e231) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-356c18c5695146f1b3de2179c552e231-advanced-0ff67b6e-e6d9-4f6b-9dc6-16840c9b7ddc' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod xfs
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  33e8324a-3501-405c-9814-cdf9f6ad1bde
	else
	  search --no-floppy --fs-uuid --set=root 33e8324a-3501-405c-9814-cdf9f6ad1bde
	fi
	linuxefi /vmlinuz-0-rescue-356c18c5695146f1b3de2179c552e231 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us 
	initrdefi /initramfs-0-rescue-356c18c5695146f1b3de2179c552e231.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
The contents of /proc/mdstat appear to be empty, so maybe raid software is not supported (as far as I know I'm not using a raid array):

Code: Select all

# cat /proc/mdstat 

Personalities : 
unused devices: <none>

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Latest kernel does not show up in boot menu

Post by TrevorH » 2017/04/21 10:25:51

Is this your own machine or is it something like a Digital Ocean droplet?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

stargazer
Posts: 10
Joined: 2017/03/08 07:18:52

Re: Latest kernel does not show up in boot menu

Post by stargazer » 2017/04/21 16:31:57

It's my own machine - a laptop that I use for work. The initial Centos 7 install was done by someone else a couple years ago, but I've been doing the maintenance since then, and learning along the way. It looks like I have grub2-efi.x86_64 installed but not grub2.x86_64 as indicated by the @ signs in the yum list (I'll try to read up on the differences):

Code: Select all

# yum list | grep grub
grub2-efi.x86_64                          1:2.02-0.44.el7.centos       @base    
grub2-tools.x86_64                        1:2.02-0.44.el7.centos       @base    
grubby.x86_64                             8.28-21.el7_3                @updates 
grub-customizer.x86_64                    5.0.6-1.el7                  epel     
grub2.x86_64                              1:2.02-0.44.el7.centos       base     
grub2-efi-modules.x86_64                  1:2.02-0.44.el7.centos       base     

belgeadmin
Posts: 21
Joined: 2017/04/23 10:51:03
Location: Belgium

Re: Latest kernel does not show up in boot menu

Post by belgeadmin » 2017/04/25 08:42:15

Do you see latest kernel in your boot directory with ls option?
“If at first the idea is not absurd, then there is no hope for it.”

stargazer
Posts: 10
Joined: 2017/03/08 07:18:52

Re: Latest kernel does not show up in boot menu

Post by stargazer » 2017/04/27 16:29:48

It looks like the files for the kernel are in the boot directory (I would like to use kernel-3.10.0-514.16.1.el7.x86_64 but only see up through 3.10.0-327.28.2.el7.x86_4 in the boot menu):

Code: Select all

$ cd /boot/
$ ls |more
config-3.10.0-327.28.2.el7.x86_64
config-3.10.0-327.4.4.el7.x86_64
config-3.10.0-514.10.2.el7.x86_64
config-3.10.0-514.16.1.el7.x86_64
config-3.10.0-514.6.1.el7.x86_64
efi/
grub/
grub2/
initramfs-0-rescue-356c18c5695146f1b3de2179c552e231.img
initramfs-3.10.0-327.28.2.el7.x86_64.img
initramfs-3.10.0-327.4.4.el7.x86_64.img
initramfs-3.10.0-514.10.2.el7.x86_64.img
initramfs-3.10.0-514.16.1.el7.x86_64.img
initramfs-3.10.0-514.6.1.el7.x86_64.img
initrd-plymouth.img
symvers-3.10.0-327.28.2.el7.x86_64.gz
symvers-3.10.0-327.4.4.el7.x86_64.gz
symvers-3.10.0-514.10.2.el7.x86_64.gz
symvers-3.10.0-514.16.1.el7.x86_64.gz
symvers-3.10.0-514.6.1.el7.x86_64.gz
System.map-3.10.0-327.28.2.el7.x86_64
System.map-3.10.0-327.4.4.el7.x86_64
System.map-3.10.0-514.10.2.el7.x86_64
System.map-3.10.0-514.16.1.el7.x86_64
System.map-3.10.0-514.6.1.el7.x86_64
vmlinuz-0-rescue-356c18c5695146f1b3de2179c552e231*
vmlinuz-3.10.0-327.28.2.el7.x86_64*
vmlinuz-3.10.0-327.4.4.el7.x86_64*
vmlinuz-3.10.0-514.10.2.el7.x86_64*
vmlinuz-3.10.0-514.16.1.el7.x86_64*
vmlinuz-3.10.0-514.6.1.el7.x86_64*

Macenger
Posts: 23
Joined: 2016/10/18 08:29:57

Re: Latest kernel does not show up in boot menu

Post by Macenger » 2017/04/28 11:29:49

Please share the following outputs:

# df -Th
# cat /proc/mount
# fdisk -l

Post Reply