Grub2-mkrelpath error failed to get canonical path /boot/vmlinuz-5.14.0-362.8.1.el9_3.x86_64

When updating to 9.3, kernel-core package install errors out with following:

Running scriptlet: kernel-core-5.14.0-362.8.1.el9_3.x86_64
cp: cannot open ‘lib/modules/5.14.0-362.8.1.el9_3.x86_64/vmlinuz’ for reading: Operation not permitted
grub2-mkrelpath: error: failed to get canonical path of ‘/boot/vmlinuz-5.14.0-362.8.1.el9_3.x86_64’.
dirname: missing operand.

For anyone running into this issue, here is what I did to resolve this problem.

Reinstall coreutils. Then reinstall kernel-core. On a few tries, I had to repeat this a second time, and then it worked.

Ended being a Trellix issue. They added some module updates which caused an issue with using the new kernel modules. Updated to latest Trellix software solved issue.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.