Regenerate initramfs in CentOS 7
If you change motherboard you may meet a boot issue like /dev/centos/root does not exist. Just follow the tips in CentOS wiki to rebuild initramfs and the issue should be resolved.
Procedure
NOTICE
- Don’t rename initramfs file.
- Install xfsprogs for XFS filesystem & LVM2 for LVM partitions.
- Mount /boot first and bind mount to chroot folder(/media/sysimage/boot in sample)