Sanity/rebuild-kernel-and-reboot is imported from RHEL's tests/binutils/Sanity/rebuild-kernel-and-reboot (as of commit c5bc77c). It needs some adaptations first before running in Fedora.