Is there any way to consider backtick symbols as escape character in anaconda kickstart scripts?

Solution Verified - Updated -

Issue

  • Have the following in a kickstart custom snippet that is being included in the kickstart files.
  • When this snippet gets executed during the install process, the command inside the backticks do not make it through into the final file.
# Fix logrotate
# Copy syslog to securelog
/bin/cat <<SECURE> /etc/logrotate.d/securelog
/var/log/secure
{
    create 0644 root splunk
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}
SECURE
  • The follow is the outcome of that kill line:
      /bin/kill -HUP  2> /dev/null || true
  • Is there any way to consider backtick symbols as escape character in anaconda kickstart scripts?

Environment

  • Red Hat Enterprise Linux 5/6/7
  • Kickstart Scripting
  • Bash

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.