Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.

http://fedoraproject.org/wiki/Anaconda/Kickstart#Chapter_4._Pre-installation_Script

share|improve this answer

Your Answer

 
discard

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.