RE: Install RHEL6 from tmpfs

"Fisher, Robert L (ROB)" <[email protected]> Tue, 21 Jul 2015 10:36:02 -0400
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <9E58F88EC6E1D8489E6DE99CFAD21BDB12EF9B7600@FHDP1LUMXC7V11.us.one.verizon.com>
Howdy, you might need to clear the disk before you configure it.

Try adding this line:
clearpart --initlabel --all --drives=sda



Rob Fisher 
Verizon 


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Netravali, Ganesh
Sent: Tuesday, July 21, 2015 6:35 AM
To: [email protected]
Subject: Install RHEL6 from tmpfs

Hi

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.

1. Copied automated ks.cfg to vmlinuz, initrd.img and images dir to / folder from ISO.

Modified the grub.conf with below lines.

title RedHat Install
        root (hd0,2)
        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
        initrd /boot/initrd.img


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.

harddrive --partition=tmpfs --dir=/mnt/isodir


Preinstall section code to create the install repository

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

 
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?

Thanks
Ganesh







_______________________________________________
Kickstart-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kickstart-list