build/init: support Red Hat and CentOS for kexec