New comment by ahesford on void-packages repository https://github.com/void-linux/void-packages/issues/42047#issuecomment-1563345919 Comment: I think a better fix for your specific problem is checking in the `grub` hook that both the kernel and initramfs for the specified `$VERSION` exist and, if not, don't run `grub-mkconfig`.