From: Don Zickus on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1617#note_8465396...
@keszybz - thanks for the contribution. I feel like I am missing something obvious.
If I follow your assumption, that someone will install a kernel in a virt env or container that may not have systemd and/or access to /boot, then your changes make sense and I can see how it prevents the grub error messages you are seeing.
However, I am stuck on the assumption part. Is there any value in installing a kernel in those environments? The package puts everything under /lib/modules easily enough, you just loose the /boot and grub setup. Is that useful? It might be, but currently I am thinking all these changes do is prevent error messages when the developer does something not useful. And I could be ok with that, I think. I am probably missing something obvious. Thoughts?