<div dir="ltr"><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px">>> </span><span style="color:rgb(80,0,80);font-size:12.8000001907349px">Below are is the content of kickstart file to copy the repo to tmpfs created out of system RAM.</span><br></div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br>>> mount -t tmpfs -o size=1g tmpfs /mnt/isodir 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></span><br><div>I think Anaconda Installer's image of stage2 contains the /usr/bin/anaonda script. which calls for the execution of pre scripts.</div><div><br></div><div>So I think you are using tmpfs as partition for obtaining stage2 image will not be helpful.</div><div>Because  you are mounting tmpfs in pre scripts, which executes later. but referring in a early section of install.     </div><div>So I think you should modify the install method arguement in kickstrt file      </div><div><br><div class="gmail_extra"><br></div><div class="gmail_extra">>> <span style="color:rgb(80,0,80);font-size:12.8000001907349px">2. created the tar out of cdrom contents and kept in / dir 3. Below are is the content of kickstart file to copy the repo to tmpfs created out of system RAM.</span><br></div><div class="gmail_extra"><div>>> <span style="color:rgb(80,0,80);font-size:12.8000001907349px">harddrive --partition=tmpfs --dir=/mnt/isodir</span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px">modify the above as below:- </span></div><div><br></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px">harddrive --partition=sda2  -</span><span style="color:rgb(80,0,80);font-size:12.8000001907349px">-dir=/mnt/isodir</span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"> or generate UUID of sda2 </span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px">harddrive </span><span style="color:rgb(80,0,80);font-size:12.8000001907349px"> </span><span style="color:rgb(80,0,80);font-size:12.8000001907349px">--partition=</span><span style="font-size:12.8000001907349px;color:rgb(80,0,80)">disk/by-uuid/UUID </span><span style="color:rgb(80,0,80);font-size:12.8000001907349px">--dir=/mnt/isodir</span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px">Hope it helps.</span></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 29, 2015 at 5:12 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">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Kickstart file is getting picked up from sda2 but issue is with stage 2. I am not able to point stage2 image to tmpfs .<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Ganesh
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:kickstart-list-bounces@redhat.com" target="_blank">kickstart-list-bounces@redhat.com</a> [mailto:<a href="mailto:kickstart-list-bounces@redhat.com" target="_blank">kickstart-list-bounces@redhat.com</a>]
<b>On Behalf Of </b>anant garg<br>
<b>Sent:</b> Wednesday, July 29, 2015 3:03 PM<span class=""><br>
<b>To:</b> Discussion list about Kickstart<br>
</span><b>Subject:</b> Re: Install RHEL6 from tmpfs<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Would you let me know how your kickstart file looks like ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">And also confirm that is your kickstart being picked up by installer ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">i think you can access and Check the logs on tty3 .<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Jul 29, 2015 at 2:49 PM, Netravali, Ganesh <<a href="mailto:gnetravali@sonusnet.com" target="_blank">gnetravali@sonusnet.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Hi.<br>
<br>
Thanks for your suggestions. That didn't go well. What exactly I am trying is.<br>
<br>
Pre condition.<br>
1. System is installed with rhel version(No specific version).<br>
<br>
Target.<br>
1. Copy the RHEL customized ISO to the system disk and start the installation from that ISO when system boots p next time.<br>
<br>
Procedure followed.<br>
1. Copy the ISO to RHEL preinstalled system.<br>
2. Modified the grub.conf with below lines so that I can boot the system to start the installation.<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>
  3. created the tar out of cdrom contents and kept in / dir 3. Below are is the content of kickstart file to copy the repo to tmpfs created out of system RAM.<br>
<br>
mount -t tmpfs -o size=1g tmpfs /mnt/isodir 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>
This is somehow not picking up the ISO since anaconda look for ISO and stage 2  in sda2. Is there any way I can do the installation from tmpfs ?<br>
<br>
Thanks<br>
<span><span style="color:#888888">Ganesh</span></span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:kickstart-list-bounces@redhat.com" target="_blank">kickstart-list-bounces@redhat.com</a> [mailto:<a href="mailto:kickstart-list-bounces@redhat.com" target="_blank">kickstart-list-bounces@redhat.com</a>] On Behalf Of Fisher, Robert L (ROB)<br>
Sent: Tuesday, July 21, 2015 8:06 PM<br>
To: Discussion list about Kickstart<br>
Subject: RE: Install RHEL6 from tmpfs<br>
<br>
Howdy, you might need to clear the disk before you configure it.<br>
<br>
Try adding this line:<br>
clearpart --initlabel --all --drives=sda<br>
<br>
<br>
<br>
Rob Fisher<br>
Verizon<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:kickstart-list-bounces@redhat.com" target="_blank">kickstart-list-bounces@redhat.com</a> [mailto:<a href="mailto:kickstart-list-bounces@redhat.com" target="_blank">kickstart-list-bounces@redhat.com</a>] On Behalf Of Netravali, Ganesh<br>
Sent: Tuesday, July 21, 2015 6:35 AM<br>
To: <a href="mailto:kickstart-list@redhat.com" target="_blank">kickstart-list@redhat.com</a><br>
Subject: Install RHEL6 from tmpfs<br>
<br>
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 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 mkdir /mnt/isomount mount /dev/sda2 /mnt/isomount cd /mnt/isodir tar -xzvf /mnt/isomount/repo.tgz 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" target="_blank">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
<br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com" target="_blank">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
<br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com" target="_blank">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

<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></div></div>