I have a kickstart file that I use to install CentOS 7. I run some scripts in the %post section of the kickstart file. In the script, there is a checking for the compatibility of the machine, and if the checking fails, I need to reboot/shutdown that particular machine, without completing the installation. But when I install the OS, If the compatibility checking fails, the computer is not rebooting, instead it is showing a message "running in chroot, ignoring requst".
How can i do this? I want to reboot my machine if the compatibility check fails, I am running the scripts in the %post section of the kickstart file.