<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>For me it's easier to use:<br><br>set $(list-harddrives)<br>let numd=$#/2 # Number of disks<br>d1=$1 # device for 1st disk<br>S1=$2 # size for first disk (and so on)<br><br>DISK=$d1<br><br>echo "clearpart --drives=$DISK --all --initlabel" >> /tmp/part-include<br>echo "part /boot --fstype ext3 --size=100 --ondisk=$DISK" >> /tmp/part-include<br>echo "part pv.100000 --size=1 --grow --ondisk=$DISK" >>  /tmp/part-include<br>echo "volgroup vgname --pesize=32768 pv.100000" >> /tmp/part-include<br>echo "logvol swap --fstype swap --name=Swap --vgname=vgname --size=2047" >> /tmp/part-include<br>echo "logvol  / --fstype ext3 --name=root --vgname=vgname --size=2048" >> /tmp/part-include  <br>echo "logvol /home --fstype ext3 --size=1500 --name=home --vgname=vgname" >> /tmp/part-include<br>echo "logvol /tmp --fstype ext3 --size=2048 --name=tmp --vgname=vgname" >> /tmp/part-include<br><br><br><br><hr id="zwchr"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>De: </b>"Adrian Cruceru" <crucerua@avaya.com><br><b>Para: </b>kickstart-list@redhat.com<br><b>Enviados: </b>Lunes, 22 de Octubre 2012 9:45:17<br><b>Asunto: </b>Re: Disk detection with kickstart<br><br>
  
    
  
    Hi,<br>
    <br>
    You can process /proc/partitions within %pre. Just make sure to
    avoid block devices.<br>
    <br>
    You can easily process this and generate a separate file for
    partitioning (and have a %include for that)<br>
    <br>
    Hope this helps,<br>
    <br>
    Regards,<br>
    Adrian<br>
    <br>
    <br>
    On 10/22/2012 10:11 AM, Markus Eyrich wrote:
    <blockquote cite="mid:5084F191.3070601@byteaction.de">
      
      <div class="moz-cite-prefix"><font size="-1">D<font size="-1">id
            you get any help on this topic ? I would also be interested
            in that.<br>
            <br>
          </font></font>
        <div class="moz-signature">
          
          <title></title>
          
          
          <div class="moz-signature">
            <div class="moz-signature">
              <style>
<!--
 
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-charset:1;
        mso-generic-font-family:roman;
        mso-font-format:other;
        mso-font-pitch:variable;
        mso-font-signature:0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:"Times New Roman";
        mso-fareast-theme-font:minor-fareast;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;}
a:link, span.MsoHyperlink
        {mso-style-noshow:yes;
        mso-style-priority:99;
        color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-noshow:yes;
        mso-style-priority:99;
        color:purple;
        mso-themecolor:followedhyperlink;
        text-decoration:underline;
        text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {mso-style-noshow:yes;
        mso-style-priority:99;
        mso-style-link:"E-Mail-Signatur Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:"Times New Roman";
        mso-fareast-theme-font:minor-fareast;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;}
span.E-Mail-SignaturZchn
        {mso-style-name:"E-Mail-Signatur Zchn";
        mso-style-noshow:yes;
        mso-style-priority:99;
        mso-style-unhide:no;
        mso-style-locked:yes;
        mso-style-link:E-Mail-Signatur;}
..MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        font-size:11.0pt;
        mso-ansi-font-size:11.0pt;
        mso-bidi-font-size:11.0pt;
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:"Times New Roman";
        mso-fareast-theme-font:minor-fareast;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
              <div class="Section1">
                <p class="MsoAutoSig"><font color="#000000">Kind
                    regards,<br>
                  </font><b><span style="font-size: 10pt;"></span></b><b style=""><span style="font-size: 10pt;"></span></b></p>
                <p class="MsoNormal"> </p>
              </div>
            </div>
          </div>
        </div>
        Markus<br>
        <br>
        Am 21.10.2012 23:51, schrieb kk s:<br>
      </div>
      <blockquote cite="mid:CAPU-Ed76cJ0ezuZ3tahpVu7QQWKucdZTrPVQtChyRo=OEhB0TQ@mail.gmail.com">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I have to provision the servers and all the servers are
          different disk types like hda, sda, xvda. So I have issue to
          detect the disk type itself with kickstart and make
          partitions. Does anyone have pre installation script that will
          do this job?</div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre>_______________________________________________
Kickstart-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kickstart-list@redhat.com" target="_blank">Kickstart-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/kickstart-listDiese" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-listDiese</a> E-Mail wurde von bytstor archiviert. Zum Ändern des Status: <a class="moz-txt-link-freetext" href="http://bytstormail.byteaction.de/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CSearchStoredMail.vm?redirect_template=storedMail%2CSearchStoredMail.vm&usermailid=10337005" target="_blank">http://bytstormail.byteaction.de/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CSearchStoredMail.vm?redirect_template=storedMail%2CSearchStoredMail.vm&usermailid=10337005</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Kickstart-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kickstart-list@redhat.com" target="_blank">Kickstart-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a></pre>
    </blockquote>
    <br>
  <br>_______________________________________________<br>Kickstart-list mailing list<br>Kickstart-list@redhat.com<br>https://www.redhat.com/mailman/listinfo/kickstart-list</blockquote><br><br><br>-- <br><div><span name="x"></span><br>Pablo Iranzo Gómez (Pablo.Iranzo@redhat.com)<br>Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, RHCE, RHCSA, RHCSP) #110-215-852<br>Phone: +34 645 01 01 49 (CET/CEST)<br>GnuPG KeyID: 0x5BD8E1E4 <br><span name="x"></span><br></div></div></body></html>