Zoetrope

a blog about web apps, Lisp, Rails and all the REST ...

Silence Anaconda confirm messages using clearpart when Kickstarting

Wouter found this one around the net:

"If you start out with a unpartitioned disk, or a virtual machine on a unpartitioned image, use the --initlabel parameter to clearpart to make sure that the disklabel is initialized, or Anaconda will ask you to confirm creation of a disklabel interactively. For instance, to clean all partitions on xvda, and initialize the disklabel if it does not exist yet, you could use:"

clearpart --all --initlabel --drives=xvda