How to write a %pre or %post script in Kickstart profile to have interactive prompts for the inputs from the users?
Issue
- The
%preand%postscript in the RHN Satellite does not promptanaconda installerfor inputs. - Prompts are not
echoed tostdoutbut input is accepted fromstdin - Requirement is to get the data from user in
%preand%postscripts 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
%preand%postscripts to prompt inputs from an administrator.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.