<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Do I have to build the ISO on a RHEL 7 system?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> kickstart-list-bounces@redhat.com [mailto:kickstart-list-bounces@redhat.com]
<b>On Behalf Of </b>Mr. Pushpendra Chavan<br>
<b>Sent:</b> Wednesday, June 08, 2016 8:41 AM<br>
<b>To:</b> Discussion list about Kickstart<br>
<b>Subject:</b> [EXTERNAL] Re: RHEL 7 problems.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif";color:#274E13">Hello,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif";color:#274E13">Here are the steps which I follow to modify my ISO for adding Kickstart, you might want to give it a try. One can run these steps on RHEL7/CentOS7
 machine.<br>
<br>
1. Mount the DVD iso at some location:<br>
<br>
</span><span style="font-family:"Tahoma","sans-serif";color:#274E13">    # mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt</span><span style="font-family:"Arial","sans-serif";color:#274E13"><br>
<br>
2. Then create a directory and copy all the contents of the ISO into the same.<br>
<br>
</span><span style="font-family:"Tahoma","sans-serif";color:#274E13">    # mkdir /tmp/rhel7<br>
    # shopt -s dotglob<br>
    # cp -avRf /mnt/* /tmp/rhel7</span><span style="font-family:"Arial","sans-serif";color:#274E13"><br>
<br>
3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7<br>
<br>
</span><span style="font-family:"Tahoma","sans-serif";color:#274E13">    # cd /tmp/rhel7<br>
    #  ls -a</span><span style="font-family:"Arial","sans-serif";color:#274E13"><br>
<br>
4. Get the kickstart file and rename it to ks.cfg<br>
<br>
</span><span style="font-family:"Tahoma","sans-serif";color:#274E13">    # cd /tmp/rhel7<br>
    # wget <a href="ftp://192.168.122.254/rhel7/ks.cfg">ftp://192.168.122.254/rhel7/ks.cfg</a>
</span><span style="font-family:"Arial","sans-serif";color:#274E13"><========== or simply copy your kickstart file<br>
<br>
5. Confirm the LABEL of the DVD iso.<br>
<br>
</span><span style="font-family:"Tahoma","sans-serif";color:#274E13">    # blkid /path/to/rhel-server-7.2-x86_64-dvd.iso
</span><span style="font-family:"Arial","sans-serif";color:#274E13"><br>
<br>
6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows.<br>
<br>
</span><span style="font-family:"Tahoma","sans-serif";color:#274E13">#######################################<br>
label kickstart<br>
  menu label ^Kickstart Installation of RHEL7.2<br>
  kernel vmlinuz<br>
  append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 inst.ks=cdrom:/ks.cfg<br>
#######################################</span><span style="font-family:"Arial","sans-serif";color:#274E13"><br>
<br>
Make sure that the stanza has inst.stage2 and the correct label.<br>
<br>
7. Now, save the file and create the ISO as follows.<br>
<br>
</span><span style="font-family:"Tahoma","sans-serif";color:#274E13">    # mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c isolinux/<a href="http://secure-web.cisco.com/1UMmCKqlVs5S02IVStJ2oWf5O2EAILD6pDZSIRHEYfHnX1NT0NI0br2PNX4vXs4STSwWWTwhuAANnKzx2UK3KCuZIFO4KNRwSnfrdkVhxA_i-zlra-ffDUBuKkdidpZest4x1YnWOuItfMbvoXPN6UDyGYl-hRMoCwGIuWUW39FL8x8jRlaLfyUuywEXebUncWYc_4f8qAi3_whsHnUh5pT-zL4kMrp18NTNHs4uqd3OSW2LUShL2htSsA7bva4zr/http%3A%2F%2Fboot.cat">boot.cat</a>
 -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -graft-points -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/</span><span style="font-family:"Arial","sans-serif";color:#274E13"><br>
<br>
The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot only, for UEFI boot, the procedure will be a little bit different. Just few more steps added/replaced.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#274E13">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#274E13">Pushpendra Chavan.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>