<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(39,78,19)">Hello,<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(39,78,19)">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 style="font-family:tahoma,sans-serif">    # mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt</span><br><br>2. Then create a directory and copy all the contents of the ISO into the same.<br><br><span style="font-family:tahoma,sans-serif">    # mkdir /tmp/rhel7<br>    # shopt -s dotglob<br>    # cp -avRf /mnt/* /tmp/rhel7</span><br><br>3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7<br><br><span style="font-family:tahoma,sans-serif">    # cd /tmp/rhel7<br>    #  ls -a</span><br><br>4. Get the kickstart file and rename it to ks.cfg<br><br><span style="font-family:tahoma,sans-serif">    # 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><========== or simply copy your kickstart file<br><br>5. Confirm the LABEL of the DVD iso.<br><br><span style="font-family:tahoma,sans-serif">    # blkid /path/to/rhel-server-7.2-x86_64-dvd.iso </span><br><br>6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows.<br><br><span style="font-family:tahoma,sans-serif">#######################################<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><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 style="font-family:tahoma,sans-serif">    # mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c isolinux/<a href="http://boot.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><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.<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(39,78,19)">Regards,<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(39,78,19)">Pushpendra Chavan.<br></div><br></div>