Kickstart Snippet is not reflected in the Kickstart file for Red Hat Network Satellite ?

Solution Verified - Updated -


  • Red Hat Satellite 5.x


  • Snippets are not rendering in kickstart file.
  • Custom snippet throws error during kickstart installation - "/tmp/ks-script-fzHJ56: line 22 syntax error near unexpected token."


  • kickstart snippet only works if the templating checkbox is checked.
  • If this checkbox is ticked, variables within snippets are also treated as template variables, so it should be escaped with \ or the entire script needs to be wraped inside '#raw' and '#end raw'
  • For more infromation on the same refer: Red Hat Network Satellite Getting Started Guide

Root Cause

  • That happens because in kickstart snippets, $ and # bears special meanings.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.