Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I used a kickstart file with the command clearpart --all --initlabel to make sure anaconda would clear any disks before trying to create and format new partitions.

This has worked in the past for me, on physical machines. However, when doing so on a KVM guest with an underlying LVM volume as storage, Anaconda waits for user input at the following warning:

error screenshot

I'm going to answer this question myself. I mistakenly thought my problem and solution were related to this question here on ServerFault. Since they are not, I'm creating and answering a new question.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

The solution on CentOS/RHEL is apparently adding zerombr to your kickstart file. You should have these two lines before defining your bootloader location and disk partitioning:

zerombr
clearpart --initlabel

Or use this if you want ALL attached drives to have their partition table wiped.

zerombr
clearpart --all --initlabel
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.