I am creating an RPM package that installs some tools on a system. I want to check some machine state before installing my RPM package. My initial instinct is to just run some commands from within the %pre scriptlet, and "exit 1" if the outcome isn't exactly what I like. But then I encountered this which says:
All scriptlets MUST exit with the zero exit status.
Is there some other way to get RPM to abort the install of a package based on the results of shell commands?