Re: Pre-install user input confirmation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx
> 
> 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list


_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux