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 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.