LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-28-2018, 12:11 AM   #1
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
Dual boot : os-prober does not recognize updated CentOS kernel


Hi LQ,

Since the good folks at OpenSUSE released the latest version 15, I decided to upgrade my buggy version of Leap 42.2. The upgrade was done via a live USB and not by usual 'zypper dup'

This is my oldest laptop, which housed CentOS 7.4 and Leap 42.2 as dual boot setup. Opensuse was (& is) in charge of handling the Grub2 bootloader menu.

After the new OpenSUSE was installed, it detected my CentOS installation as it should and added entry to bootloader. Then, I decided to do a kernel upgrade on CentOS from 3.10.0-693.17.1.el7.x86_64 to 3.10.0-862.3.2.el7. I still wanted opensuse to handle the grub2 menu. So I completed the kernel update on CentOS, rebooted and logged into OpenSUSE and ran 'os-prober'.

Output -
Code:
acer-SUSE:~ # os-prober
/dev/mapper/VG_Cent7_R-root:CentOS Linux 7 (Core):CentOS:linux
So, now, I can log into the older kernel version of CentOS and not to the newer kernel. Could you please tell what I am doing wrong ?

I have looked at dedoimedo's tutorial along with others on the LQ forum. I am sure this question has been asked previously (and answered), but it's challenging to find a needle in a haystack when 70% of the threads talk about dual booting with windows and legacy grub. If you could point me to a helpful thread, that'd be very much appreciated.

CentOS current and installed kernel -

Code:
-bash-4.2$ sudo yum list installed kernel
[sudo] password for anirban: 
~truncated~
Installed Packages
kernel.x86_64                    3.10.0-693.5.2.el7                     @updates
kernel.x86_64                    3.10.0-693.11.1.el7                    @updates
kernel.x86_64                    3.10.0-693.11.6.el7                    @updates
kernel.x86_64                    3.10.0-693.17.1.el7                    @updates
kernel.x86_64                    3.10.0-862.3.2.el7                     @updates
-bash-4.2$ uname -a
Linux ab-CentOS7.example.com 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
grub2 of CentOS. New kernel has been detected.
Code:
-bash-4.2$ sudo cat /boot/grub2/grub.cfg | grep -Ev "^#|^$"
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
else
  set timeout=5
fi
set tuned_params=""
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
menuentry 'CentOS Linux (3.10.0-862.3.2.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.el7.x86_64-advanced-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  22675616-84e7-40a4-bcf9-9c7627f11825
	else
	  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
	fi
	linux16 /vmlinuz-3.10.0-862.3.2.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
	initrd16 /initramfs-3.10.0-862.3.2.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-693.17.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.el7.x86_64-advanced-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  22675616-84e7-40a4-bcf9-9c7627f11825
	else
	  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
	fi
	linux16 /vmlinuz-3.10.0-693.17.1.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
	initrd16 /initramfs-3.10.0-693.17.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-693.11.6.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.el7.x86_64-advanced-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  22675616-84e7-40a4-bcf9-9c7627f11825
	else
	  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
	fi
	linux16 /vmlinuz-3.10.0-693.11.6.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
	initrd16 /initramfs-3.10.0-693.11.6.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-693.11.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.el7.x86_64-advanced-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  22675616-84e7-40a4-bcf9-9c7627f11825
	else
	  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
	fi
	linux16 /vmlinuz-3.10.0-693.11.1.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
	initrd16 /initramfs-3.10.0-693.11.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-693.5.2.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.el7.x86_64-advanced-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  22675616-84e7-40a4-bcf9-9c7627f11825
	else
	  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
	fi
	linux16 /vmlinuz-3.10.0-693.5.2.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
	initrd16 /initramfs-3.10.0-693.5.2.el7.x86_64.img
}
menuentry 'CentOS Linux (0-rescue-8a2d310914e84a238d8cac8c1455c823) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-8a2d310914e84a238d8cac8c1455c823-advanced-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  22675616-84e7-40a4-bcf9-9c7627f11825
	else
	  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
	fi
	linux16 /vmlinuz-0-rescue-8a2d310914e84a238d8cac8c1455c823 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet
	initrd16 /initramfs-0-rescue-8a2d310914e84a238d8cac8c1455c823.img
}
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
Grub2 of OpenSUSE -

Code:
acer-SUSE:~ # grep -Ev "^$|^#" /boot/grub2/grub.cfg
if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${env_block}" ] ; then
  load_env -f "${env_block}"
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   if [ "${env_block}" ] ; then
     save_env -f "${env_block}" next_entry
   fi
   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
    if [ "${env_block}" ] ; then
      save_env -f "${env_block}" saved_entry
    fi
  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
}
if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
else
  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
fi
    font="/usr/share/grub2/unicode.pf2"
fi
if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
else
  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
export theme
if [ x${boot_once} = xtrue ]; then
  set timeout=0
elif [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=8
else
  set timeout=8
fi
set tuned_params=""
set tuned_initrd=""
menuentry 'openSUSE Leap 15.0'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6251e56e-3b65-4610-9ebe-38dfbe456008' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod lvm
	insmod xfs
	set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
	else
	  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
	fi
	echo	'Loading Linux 4.12.14-lp150.12.4-default ...'
	linux	/boot/vmlinuz-4.12.14-lp150.12.4-default root=/dev/mapper/leap_rootvg-leap_rootlv  quiet install=hd:/// resume=/dev/disk/by-uuid/757537df-8a6d-4001-84c6-d302e4d5926a splash=silent quiet showopts
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd-4.12.14-lp150.12.4-default
}
submenu 'Advanced options for openSUSE Leap 15.0' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-6251e56e-3b65-4610-9ebe-38dfbe456008' {
	menuentry 'openSUSE Leap 15.0, with Linux 4.12.14-lp150.12.4-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp150.12.4-default-advanced-6251e56e-3b65-4610-9ebe-38dfbe456008' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod lvm
		insmod xfs
		set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
		else
		  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
		fi
		echo	'Loading Linux 4.12.14-lp150.12.4-default ...'
		linux	/boot/vmlinuz-4.12.14-lp150.12.4-default root=/dev/mapper/leap_rootvg-leap_rootlv  quiet install=hd:/// resume=/dev/disk/by-uuid/757537df-8a6d-4001-84c6-d302e4d5926a splash=silent quiet showopts
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd-4.12.14-lp150.12.4-default
	}
	menuentry 'openSUSE Leap 15.0, with Linux 4.12.14-lp150.12.4-default (recovery mode)' --hotkey=3 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp150.12.4-default-recovery-6251e56e-3b65-4610-9ebe-38dfbe456008' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod lvm
		insmod xfs
		set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
		else
		  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
		fi
		echo	'Loading Linux 4.12.14-lp150.12.4-default ...'
		linux	/boot/vmlinuz-4.12.14-lp150.12.4-default root=/dev/mapper/leap_rootvg-leap_rootlv  
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd-4.12.14-lp150.12.4-default
	}
}
menuentry 'CentOS Linux 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class centos --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
	else
	  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
	fi
	linux /vmlinuz-3.10.0-693.17.1.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
	initrd /initramfs-3.10.0-693.17.1.el7.x86_64.img
}
submenu 'Advanced options for CentOS Linux 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' $menuentry_id_option 'osprober-gnulinux-advanced-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	menuentry 'CentOS Linux (3.10.0-693.17.1.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-693.17.1.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-693.17.1.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-693.17.1.el7.x86_64.img
	}
	menuentry 'CentOS Linux (3.10.0-693.11.6.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-693.11.6.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-693.11.6.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-693.11.6.el7.x86_64.img
	}
	menuentry 'CentOS Linux (3.10.0-693.11.1.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-693.11.1.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-693.11.1.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-693.11.1.el7.x86_64.img
	}
	menuentry 'CentOS Linux (3.10.0-693.5.2.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-693.5.2.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-693.5.2.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-693.5.2.el7.x86_64.img
	}
	menuentry 'CentOS Linux (3.10.0-514.21.1.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-514.21.1.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-514.21.1.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-514.21.1.el7.x86_64.img
	}
	menuentry 'CentOS Linux (0-rescue-8a2d310914e84a238d8cac8c1455c823) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-0-rescue-8a2d310914e84a238d8cac8c1455c823--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-0-rescue-8a2d310914e84a238d8cac8c1455c823 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet
		initrd /initramfs-0-rescue-8a2d310914e84a238d8cac8c1455c823.img
	}
}
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
Do I need to edit the grub2.cfg of opensuse manually and just add the entry for 3.10.0-862.3.2.el7.x86_64 ?
 
Old 05-28-2018, 01:54 AM   #2
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420

Original Poster
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
Talking Sorted

Here's what I did on OpenSUSE -

1. Took a backup of /boot/grub2/grub.cfg
Code:
# cp -p /boot/grub2/grub.cfg /var/tmp/
2. I was actually seeking guidance on this step.. but went ahead anyway. (had my live USB ready)
Code:
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-4.12.14-lp150.12.4-default
Found initrd image: /boot/initrd-4.12.14-lp150.12.4-default
Found CentOS Linux 7 (Core) on /dev/mapper/VG_Cent7_R-root
done
3. Here's my grub.cfg after. Observe that it has detected the newer kernel on the CentOS.

Code:
# 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 ###
if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi

if [ "${env_block}" ] ; then
  load_env -f "${env_block}"
fi

if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   if [ "${env_block}" ] ; then
     save_env -f "${env_block}" next_entry
   fi
   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
    if [ "${env_block}" ] ; then
      save_env -f "${env_block}" saved_entry
    fi

  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
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
else
  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
fi
    font="/usr/share/grub2/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=POSIX
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
else
  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
export theme
if [ x${boot_once} = xtrue ]; then
  set timeout=0
elif [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=8
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=8
fi
### END /etc/grub.d/00_header ###

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

### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE Leap 15.0'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6251e56e-3b65-4610-9ebe-38dfbe456008' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod lvm
	insmod xfs
	set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
	else
	  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
	fi
	echo	'Loading Linux 4.12.14-lp150.12.4-default ...'
	linux	/boot/vmlinuz-4.12.14-lp150.12.4-default root=/dev/mapper/leap_rootvg-leap_rootlv  quiet install=hd:/// resume=/dev/disk/by-uuid/757537df-8a6d-4001-84c6-d302e4d5926a splash=silent quiet showopts
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd-4.12.14-lp150.12.4-default
}
submenu 'Advanced options for openSUSE Leap 15.0' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-6251e56e-3b65-4610-9ebe-38dfbe456008' {
	menuentry 'openSUSE Leap 15.0, with Linux 4.12.14-lp150.12.4-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp150.12.4-default-advanced-6251e56e-3b65-4610-9ebe-38dfbe456008' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod lvm
		insmod xfs
		set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
		else
		  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
		fi
		echo	'Loading Linux 4.12.14-lp150.12.4-default ...'
		linux	/boot/vmlinuz-4.12.14-lp150.12.4-default root=/dev/mapper/leap_rootvg-leap_rootlv  quiet install=hd:/// resume=/dev/disk/by-uuid/757537df-8a6d-4001-84c6-d302e4d5926a splash=silent quiet showopts
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd-4.12.14-lp150.12.4-default
	}
	menuentry 'openSUSE Leap 15.0, with Linux 4.12.14-lp150.12.4-default (recovery mode)' --hotkey=3 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.14-lp150.12.4-default-recovery-6251e56e-3b65-4610-9ebe-38dfbe456008' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod lvm
		insmod xfs
		set root='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Vd2WFw-yf3M-IHEy-NTBq-Fm9a-Y7y0-UKGiXe/jM3PvY-64bG-oc1X-kfYe-hg4f-eVbd-gv2Fnf'  6251e56e-3b65-4610-9ebe-38dfbe456008
		else
		  search --no-floppy --fs-uuid --set=root 6251e56e-3b65-4610-9ebe-38dfbe456008
		fi
		echo	'Loading Linux 4.12.14-lp150.12.4-default ...'
		linux	/boot/vmlinuz-4.12.14-lp150.12.4-default root=/dev/mapper/leap_rootvg-leap_rootlv  
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd-4.12.14-lp150.12.4-default
	}
}

### 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_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'CentOS Linux 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class centos --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
	else
	  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
	fi
	linux /vmlinuz-3.10.0-862.3.2.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
	initrd /initramfs-3.10.0-862.3.2.el7.x86_64.img
}
submenu 'Advanced options for CentOS Linux 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' $menuentry_id_option 'osprober-gnulinux-advanced-0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
	menuentry 'CentOS Linux (3.10.0-862.3.2.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-862.3.2.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-862.3.2.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-862.3.2.el7.x86_64.img
	}
	menuentry 'CentOS Linux (3.10.0-693.17.1.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-693.17.1.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-693.17.1.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-693.17.1.el7.x86_64.img
	}
	menuentry 'CentOS Linux (3.10.0-693.11.6.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-693.11.6.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-693.11.6.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-693.11.6.el7.x86_64.img
	}
	menuentry 'CentOS Linux (3.10.0-693.11.1.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-693.11.1.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-693.11.1.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-693.11.1.el7.x86_64.img
	}
	menuentry 'CentOS Linux (3.10.0-693.5.2.el7.x86_64) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.10.0-693.5.2.el7.x86_64--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-3.10.0-693.5.2.el7.x86_64 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet LANG=en_US.UTF-8
		initrd /initramfs-3.10.0-693.5.2.el7.x86_64.img
	}
	menuentry 'CentOS Linux (0-rescue-8a2d310914e84a238d8cac8c1455c823) 7 (Core) (on /dev/mapper/VG_Cent7_R-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-0-rescue-8a2d310914e84a238d8cac8c1455c823--0b9b8df8-01ae-468d-a6e8-5c1a696c8755' {
		insmod part_msdos
		insmod xfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  22675616-84e7-40a4-bcf9-9c7627f11825
		else
		  search --no-floppy --fs-uuid --set=root 22675616-84e7-40a4-bcf9-9c7627f11825
		fi
		linux /vmlinuz-0-rescue-8a2d310914e84a238d8cac8c1455c823 root=/dev/mapper/VG_Cent7_R-root ro rd.lvm.lv=VG_Cent7_R/root rhgb quiet
		initrd /initramfs-0-rescue-8a2d310914e84a238d8cac8c1455c823.img
	}
}

### 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 ###

### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ###
### END /etc/grub.d/80_suse_btrfs_snapshot ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

### BEGIN /etc/grub.d/95_textmode ###
### END /etc/grub.d/95_textmode ###
Rebooted and the default CentOS entry logged me in to the updated kernel correctly. That's all I wanted !

Now I am feeling kinda silly to have asked this question without attempting it in the first place. Maybe it'll help someone someday.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with os-prober grub 2 arch linux windows 10 dual boot ihavemanhands Arch 5 11-24-2015 09:09 PM
Dual Booting LFS with os-prober + grub2. ReaperX7 Linux From Scratch 9 04-30-2014 01:32 AM
Problems with dual boot, grub2 auto os prober mhbell Ubuntu 2 11-04-2009 10:11 AM
updated kernel w/up2date ... now dual boot jcarpio Linux - Software 2 04-12-2004 04:25 PM
Dual boot GRUB - Won't recognize XP partition Travis S Linux - Newbie 3 01-31-2004 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration