clearpart -all warning

jon public wincus.public at gmail.com
Wed Apr 11 15:37:05 UTC 2012


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 <ks-list at puzzled.xs4all.nl>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<http://www.trueblade.com/techblog/user-input-during-a-fedora-kickstart>
>
> Regards,
> Patrick
>
> ______________________________**_________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/**mailman/listinfo/kickstart-**list<https://www.redhat.com/mailman/listinfo/kickstart-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20120411/df46371a/attachment.htm>


More information about the Kickstart-list mailing list