- Mount a centos 7 Iso.
- Go to troubleshoting options.
- after selecting option 1, and continue, chroot /mnt/sysimg
- mkfs.xfs -f /dev/sda1 (assuming that is the boot partition.)
- check /etc/fstab and change file system type to xfs, and ensure /dev/sda1 is mount at /boot. options 0 0
- mount -a
- mount the centos install ISO , in this case sdb1 to /mnt
- cd to /mnt/Packages
- from there install these 3 packages.
- rpm -ivh --force kernel-3*.rpm (the most recent kernel ther)
- rpm -ivh --force grub2-2*.rpm (the newest package there)
- rpm -ivh --force centos-logos-*.rpm (the newes package)
- use cfdisk /dev/sda to to confirm that is the booting device.
- install grub2 on boot disk (grub2-install /dev/sda)
- create grub2 configuration file
- grub2-mkconfig -o /boot/grub2/grub.cfg
- exit from chroot
- reboot
- after reboot. yum clean all
- yum -y update
- yum reinstall kernel-3* (the specific kernel you want.)
- grub2-mkconfig -o /boot/grub2/grub.cfg
- reboot