Re: [CentOS] cleartpart in kickstart on CentOS 6

2011-07-25 Thread Kevin C
The list-harddrives results change on CentOS 6. It show all disks and partition. In C5, it only show all drives. On Mon, 25 Jul 2011 15:06:50 +0200, Kevin C wrote: > On Mon, 25 Jul 2011 05:46:15 -0700 (PDT), John Doe wrote: >> From: Kevin C >> >>> if [ $numd -ge 2 ]; then cat << EOF >> /tmp/par

Re: [CentOS] cleartpart in kickstart on CentOS 6

2011-07-25 Thread Kevin C
On Mon, 25 Jul 2011 05:46:15 -0700 (PDT), John Doe wrote: > From: Kevin C > >> if [ $numd -ge 2 ]; then cat << EOF >> /tmp/partinfo > > Did you check the partinfo file to see if the variables are correctly > replaced? > You're right, I have an error is this file, with /dev/sda1 instead of /dev/s

Re: [CentOS] cleartpart in kickstart on CentOS 6

2011-07-25 Thread John Doe
From: Kevin C > 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 st

Re: [CentOS] cleartpart in kickstart on CentOS 6

2011-07-25 Thread Kevin C
On Mon, 25 Jul 2011 02:18:53 -0700 (PDT), John Doe wrote: > Which clearpart parameters do you use? > Something like that? >   clearpart --drives=sda --all I used this on CentOS 5 without any problems : clearpart --all --initlabel I also use an pre script to detect the number of drives on the s

Re: [CentOS] cleartpart in kickstart on CentOS 6

2011-07-25 Thread John Doe
From: Kevin C > I use a kickstart file to install my operating systems. In the > kickstart file, I put the clearpart options to erase all my partition. > But the install failed because the partition aren't erased. Does someone > have the same issue ? Which clearpart parameters do you use? So