Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to make a RedHat kickstart installation exit during the %pre% section? I have a condition I'm checking, and if it's true, I'd like the installation to not continue. I have tried using the "exit" and "init" commands, but all I can get it to do is to exit out of the %pre% section, but it still continues with the installation. Is there a different command, or completely different method, of forcing kickstart to exit before it starts making any changes to the system?

share|improve this question
up vote 2 down vote accepted

This should accomplish what you're looking for:

%pre --erroronfail

If the pre-installation script fails, this option will cause an error dialog to be displayed and will halt installation. The error message will direct you to where the cause of the failure is logged.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.