openssl command fails with the following syntax error on %post scriptlet

Solution Unverified - Updated -

Issue

  • openssl command fails with the following syntax error on %post scriptlet:
/tmp/ks-script-urTl2: line 301: syntax error near unexpected token `('
/tmp/ks-script-urTl2: line 301: `  -config <(cat /etc/pki/tls/openssl.cnf; printf "******\n") \'- - 
  • The openssl command is below and it can be executed without problems on a console after boot:
    %post --log=/root/ks-post.log
     :
    openssl req \
     (--snip--)
      -config <(cat /etc/pki/tls/openssl.cnf; printf "******\n") \
     :

Environment

  • Red Hat Enterprise Linux v.7
  • kickstart

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content