How to write a %pre or %post script in Kickstart profile to have interactive prompts for the inputs from the users?
Issue
- The
%pre
and%post
script in the RHN Satellite does not promptanaconda installer
for inputs. - Prompts are not
echo
ed tostdout
but input is accepted fromstdin
- 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.