Is there a way to turn off %pretrans?
Thierry Vignaud
thierry.vignaud at gmail.com
Tue Apr 5 00:45:35 UTC 2016
On 4 April 2016 at 19:48, doc <drplastic99 at yahoo.com> wrote:
> The %pretrans: is a leftover from when others were creating the package.
> It was never an issue until KS.
>
> - What version of RHEL is used?
> CentOS 6.7
>
> - What's the actual failure?
> The failure appears to be that on a bare metal machine, KS runs the
> pretrans before /bin/sh is installed. Are the dependencies checked for
> before or after the %pretrans is executed?
>
> - What's the actual error message?
>
> error: %pretrans(noop-0.0.1.GA-1.x86_64) scriptlet failed,
> exit status 127
>
> - Is that the whole %pretrans ?
>
> %pretrans
> [ -n "$VERBOSE" ] && set -x ; :
>
> %post
So rpm is too old for pretrans requires...
Anyway, this %pretrans is useless: the set -x won't affect anything else
Just drop it.
More information about the Rpm-list
mailing list