Re: clearpart -all warning
jon public <[email protected]>
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <CABbAB98qsQCeKisEwCxzd2NRE7Sa-3L5u8nJM1P+YGeMZf_e2w@mail.gmail.com> |
Well, RHEL6.2 here and worked without changes. I think the code must be at the end of your ks. Regards, El 12 de abril de 2012 04:53, Markus Eyrich <[email protected]> escribió: > **Does this still work with CentOS 6 and Anaconda ? I can't get it to > work. Tried the very exact same code below and Anaconda just goes over it > and starts installing... Do i need to do anything more in the kickstart > file? Does it need to be in interactive or text mode or something ?! > ** > > Am 11.04.2012 17:37, schrieb jon public: > > Patrick > > Works great! Thanks for your answer. Was exactly what I was looking for. > > Regards, > > El 11 de abril de 2012 11:24, Patrick Lists <[email protected]>escribió: > >> On 04/11/2012 03:41 PM, jon public wrote: >> >>> Hi there >>> >>> I've customized my kickstart to delete all partitions ( clearpart --all >>> ). I've noticed that the installer only shows a warning message when the >>> disk does not have a valid partition ( like new virtual machines ). >>> >>> I'm afraid that someone might wipe his entire disk if booting by mistake >>> from the customized disk. Is there any way of forcing anaconda to always >>> ask for user confirmation before erasing disk partitions? >>> >>> Thanks for you help! >>> >> >> You could use something like the snippet below. All credit goes to the >> presentation "Kickstart Tips & Tricks" by Chip Shabazian (caution: lines >> may be wrapped). >> >> %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 ‘*This process will install a completely new operating system and >> *‘ >> 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 >> >> >> More instructions at >> http://www.trueblade.com/techblog/user-input-during-a-fedora-kickstart >> >> Regards, >> Patrick >> >> _______________________________________________ >> Kickstart-list mailing list >> [email protected] >> https://www.redhat.com/mailman/listinfo/kickstart-list >> > > > > _______________________________________________ > Kickstart-list mailing [email protected] > https://www.redhat.com/mailman/listinfo/kickstart-listDiese E-Mail wurde von BytStorMail archiviert. Zum Ändern des Status: http://217.195.2.162/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CIndexMail.vm?redirect_template=storedMail%2CIndexMail.vm&mailid=1044997 > > > _______________________________________________ > Kickstart-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/kickstart-list > _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list