From: Gordon Messmer on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3960#note_2569565...
This change has not (yet) been tested, and is presented for discussion.
The need to maintain the rescue kernel has been discussed numerous times, including:
https://bugzilla.redhat.com/show_bug.cgi?id=1768132
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/... read/HP5V5THLK4W5S66UZZ4CBCTO5E4SST35/#HP5V5THLK4W5S66UZZ4CBCTO5E4SST35
It would be nicely symmetrical if this could be handled in kernel- install/dracut, but dracut doesn't seem to have any concept of removing a kernel. Handling this in the kernel scriptlet seems like the best place for now, even if it lacks symmetry.