遇到 initramfs-4.18.0-348.20.1.el8_5.x86_64.img not found 問題

開機的時候出現下列訊息:

error: ../../grub-core/fs/fshelp.c:258:file
`/initramfs-4.18.0-348.20.1.el8_5.x86_64.img' not found.

Press any key to continue...

先重新開機到正常的 kernel 然後,用 dracut 工具重新建立 image.

# dracut /boot/initramfs-4.18.0-348.20.1.el8_5.x86_64.img 4.18.0-348.20.1.el8_5.x86_64

重新開機後應該可以解決

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.