https://drive.google.com/file/d/17FKA29d_pwvzxX8FAwB4gjBx8aO0boSj/view?usp=sharing
/boot directory has been accidentally deleted (rm -rf /boot/*)⚠️ Critical: This procedure only works if:
- Root filesystem (
/) is intact- You have physical/console access or rescue ISO
/mnt/sysimage)# Navigate to BaseOS packages
cd /mnt/install/repo/BaseOS/Packages
# Find exact kernel-core version (match your system)
ls kernel-core-*.rpm
# Reinstall kernel-core (replace with your version)
rpm -ivh --root=/mnt/sysimage --replacepkgs kernel-core-4.18.0-80.el8.x86_64.rpm
💡 Note:
- Ignore
grub2-editenverror—it will be fixed later- Use
-replacepkgsto force reinstall over missing files
# Chroot into your system
chroot /mnt/sysimage
# Reinstall GRUB to MBR
grub2-install /dev/sda # Replace sda with your boot disk
# Regenerate GRUB configuration
grub2-mkconfig -o /boot/grub2/grub.cfg