Pre-install user input confirmation

Andre Courchesne courchea at net-forces.com
Thu Feb 25 16:32:50 UTC 2010


Thanks Peter,

  That was exactly what I was looking for.

---

Andre Courchesne - Consultant

http://www.net-forces.com

MSN: courchea at net-forces.com

Skype: VoipForces



L'information contenue dans le présent document est la propriété de Andre Courchesne. Et est divulguée en toute confidentialité. Cette information ne doit pas être utilisée, divulguée à d'autres personnes ou reproduite sans le consentement écrit explicite de Andre Courchesne.

The information contained in this document is confidential and property of Andre Courchesne. It shall not be used, disclosed to others or reproduced without the express written consent of Andre Courchesne.





On 2010-02-25, at 10:43 AM, Peter Scheie wrote:

> In your kickstart file, you can put some shell commands into a %pre
> section that prompt the user.  We use something like this:
> 
> #
> # Pre-installation section
> #
> %pre
> #!/bin/sh
> exec < /dev/tty3 > /dev/tty3 2>&1
> chvt 3
> install="no"
> while [ "$install" != "yes" ]; do
>   clear
>   echo
>   echo '********************************************************************************'
>   echo '*                                 W A R N I N G                                *'
>   echo '*                                                                              *'
>   echo '*  You are starting the xxxxxxx xxxxx xxxxxxxxxxxxx Software installation      *'
>   echo '*  process. This process will install a completely new operating system and    *'
>   echo '*  software. Any software previously on this system will be irrevocably lost.  *'
>   echo '*                                                                              *'
>   echo '*  Do you wish to continue?  (Type the entire word "yes" to proceed.)          *'
>   echo '*                                                                              *'
>   echo '********************************************************************************'
>   echo
>   read -p "Proceed with install? " install
> done
> clear
> chvt 1
> #%end
> 
> The chvt commands are needed to make the warning appear on the correct vt on the console.  HTH.
> 
> Peter
> 
> On Thu, 2010-02-25 at 09:03 -0600, Andre Courchesne wrote:
>> Hi all,
>> 
>>  I got a kickstart automated installation working great, but since this install wipes the entire HDD, for precaution, I would like to add a pre-install user input confirmation screen. How can I do that?
>> 
>>  Thanks,
>> 
>> ---
>> 
>> Andre Courchesne - Consultant
>> 
>> http://www.net-forces.com
>> 
>> MSN: courchea at net-forces.com
>> 
>> Skype: VoipForces
>> 
>> 
>> 
>> L'information contenue dans le présent document est la propriété de Andre Courchesne. Et est divulguée en toute confidentialité. Cette information ne doit pas être utilisée, divulguée à d'autres personnes ou reproduite sans le consentement écrit explicite de Andre Courchesne.
>> 
>> The information contained in this document is confidential and property of Andre Courchesne. It shall not be used, disclosed to others or reproduced without the express written consent of Andre Courchesne.
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/kickstart-list
> 
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list





More information about the Kickstart-list mailing list