<div dir="ltr">Hi ,<div><br></div><div>I have a suggestion, Please check If they are helpful to you. </div><div><br></div><div>Would you please modify <span style="font-size:12.8000001907349px"> </span><span style="font-size:12.8000001907349px">ks=hd:sda2:/ks-sa.cfg to ks=hs:UUID='$DEVICE_UUID':</span><span style="font-size:12.8000001907349px">ks-sa.cfg</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">where </span></div><div><span style="font-size:12.8000001907349px">DEVICE_UUID is the UUID of /dev/sda2, you can use blkid for getting the value  </span><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Also modify </span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">>> </span><span style="font-size:12.8000001907349px">harddrive --partition=tmpfs --dir=/mnt/isodir</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">to </span></div><div><br></div><div>>> harddrive --partition=disk/by-uuid/XXYY-ZZ</div><div><br></div><div>Where disk/by-uuid/XXYY-ZZ is the UUID of the partition you are using for Installation<br></div><div><br></div><div><br></div><div>>> <span style="font-size:12.8000001907349px">created the tar out of cdrom contents and kept in / dir</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div>Also I think, but I am not sure that, there should not be tar for a ISO tree. because installer search for stage2 image from that location. SO It is better you  keep it as ISO .</div><div><br></div><div>Thanks and Regards,</div><div><br></div><div>Anant garg</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 21, 2015 at 4:04 PM, Netravali, Ganesh <span dir="ltr"><<a href="mailto:gnetravali@sonusnet.com" target="_blank">gnetravali@sonusnet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I have a situation where I can access the system remotely from BMC and access the console and need to do the automated kickstart installation. Presently system is installed with RHEL6 and followed the below step for hard disk based installation.<br>
<br>
1. Copied automated ks.cfg to vmlinuz, initrd.img and images dir to / folder from ISO.<br>
<br>
Modified the grub.conf with below lines.<br>
<br>
title RedHat Install<br>
        root (hd0,2)<br>
        kernel /boot/vmlinuz ro root=UUID=9684465d-8ded-43cc-8069-de5ff713dd40  ks=hd:sda2:/ks-sa.cfg repo=/mnt/isodir stage2=hd:sda2:/images/install.img<br>
        initrd /boot/initrd.img<br>
<br>
<br>
2. created the tar out of cdrom contents and kept in / dir<br>
3. Below are is the content of kickstart file to copy the repo to tmpfs created out of system RAM.<br>
<br>
harddrive --partition=tmpfs --dir=/mnt/isodir<br>
<br>
<br>
Preinstall section code to create the install repository<br>
<br>
mount -t tmpfs -o size=1g tmpfs /mnt/isodir<br>
mkdir /mnt/isomount<br>
mount /dev/sda2 /mnt/isomount<br>
cd /mnt/isodir<br>
tar -xzvf /mnt/isomount/repo.tgz<br>
umount /dev/sda2<br>
<br>
<br>
reboot the system and boot from "Redhat Install" and this triggers the installation. Presently I got struck in partitioning the sda. Any one tried this before?  Is there any suggestions or good pointers?<br>
<br>
Thanks<br>
Ganesh<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
</blockquote></div><br></div>