How to write a %pre or %post script in Kickstart profile to have interactive prompts for the inputs from the users?

Solution Verified - Updated -

Issue

  • The %pre and %post script in the RHN Satellite does not prompt anaconda installer for inputs.
  • Prompts are not echoed to stdout but input is accepted from stdin
  • Requirement is to get the data from user in %pre and %post scripts so that the system will get configured according to the same. For example: hostname
  • It's expected that all log messages are still output into the log file.

Environment

  • Red Hat Network Satellite
  • Red Hat Enterprise Linux 6
  • Kickstart Installation with manual %pre and %post scripts to prompt inputs from an administrator.

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