Re: cleartpart in kickstart on CentOS 6

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



From: Kevin C <linux@xxxxxxxxxxxxxxxxx>

> if [ $numd -ge 2 ]; then cat << EOF >> /tmp/partinfo

Did you check the partinfo file to see if the variables are correctly replaced?

> In Python,Perl or Shell? I'm searching how to wipe all drives with 
> parted or fdisk.

In an external shell script.
I just do a simple dd (I still use msdos partitioing):
dd if=/dev/zero of=$DEVICE bs=512 count=1 >/dev/null 2>&1
Then I use sfdisk with values calculated for the correct stripe size depending on the server RAID.
Then I format with a stripe-width and optionally -m 0.
I only let the ks do the mounting.
Disclaimer: did not test with CentOS 6 yet...

> clearpart --all --initlabel

needed since you already put one in your partinfo file?

JD
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux