Red Hat Bugzilla – Bug 124368
Need kickstart scriptlet failure to halt anaconda
Last modified: 2007-11-30 17:10:43 EST
Description of problem:
Presently, unless this has been fixed and I did not notice it,
kickstart scriptlets return codes are ignored. I would like to see
at least the ability to request (via the kickstart file?) that
anaconda halt when a scriptlet returns a positive return code.
This is most usefull in manufacturing environements where you
absolutely don't want something to appear like it was setup properly
when indeed it was not.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create kickstart with a couple %post scriplets and have the first
exit with 1.
2. Run anaconda with the kickstart file.
It gets all the way to the "press OK" to eject the CDROM and reboot
Would like it to simply halt (an ugly trace back is acceptable, but
a more meaningful error would be nice (-:).
Thought on implementation is to have, eg, %post --erroronfail
Okay, %pre and %post now supports the --erroronfail option. This will display
an error message and terminate installation. The error message will tell you
where to get the output from the failure.
Would it be possible to attach a patch back to this bugzilla. I can figure it
out one way or another, but I am back in RHEL 3, so I have patch anaconda there.
Cheers and Thanks...james
Created attachment 110825 [details]
patch to support --erroronfail
You've made my day. Thanks...james