<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Hi all,</div><div>sorry for my bad English, in advance.</div>
<div><br></div><div><br></div>Since long time,  I have been making custom initrd files for rhel versions like RHEL4.X , RHEL5.X and now trying the same for RHEL6.<div>Using the original vmlinuz (that comes with RHEL iso) and my custom initrd, I used to do pxe booting. </div>
<div><br></div><div>My custom initrd I used to create something like this, pseudo steps:-</div><div>1. Create all the necessary / directory hierarchy like /etc, /usr, etc.etc. and copy necessary files in that.</div><div>2. /bin/dd if=/dev/zero of=/tmp/initrd.img bs=1k count=165888 (the value of count is based on some custom calculations)</div>
<div>3. sbin/mke2fs -b 1024 -q -m0 -F -O none /tmp/initrd.img</div><div>4. /bin/mount -o loop /tmp/initrd.img /mycustominitrd</div><div>5. Using /bin/cp --recursive --preserve , I used to copy the custom directory hierarchy to /mycustominitrd.</div>
<div>6. unmount /mycustominitrd.</div><div>7. Using "gzip --force" , I used to create initrd image (without using mkinitrd or dracut).</div><div><br></div><div>This customized initrd image along with original vmlinuz , I use to so pxe booting my machines.</div>
<div><br></div><div>Up to RHEL5.X, it worked perfectly. But now, it seems that vmlinuz of RHEL6 expects something  different than RHEL5 vmlinuz.</div><div>When I do pxe booting the machine using RHEL6's vmlinuz and my initrd, it takes vmlinuz and initrd through tftp successfully, but after extracting initrd, it gives me error as follows:-</div>
<div><br></div><div><font color="#FF0000">RAMDISK: gzip image found at block 0</font></div><div><font color="#FF0000">List of all partitions:<br>No filesystem could mount root, tried:  iso9660<br>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(9,1)</font></div>
<div><font color="#FF0000"> Pid: 1, comm: swapper Not tainted 2.6.32-71.el6.x86_64 #1<br> Call Trace:</font><br></div><div>............ (please see the screenshot for full details....)</div><div><br></div><div><br></div><div>
More surprisingly, if I try to use the same initrd with RHEL5 or RHEL4 vmlinuz it works perfectly.</div><div><br></div><div><br></div><div>This is the some of the contents of pxelinux.cfg file:</div><div>KERNEL feb1/vmlinuz</div>
<div>APPEND ramdisk_blocksize=1024 ramdisk_size=165888 initrd=feb1/initrd.img</div><div>IPAPPEND 3 </div><div>   </div><div><br></div><div>Also, if I replace my initrd with initramfs of RHEL6 , i get following error:-</div>
<div><br></div><div><font color="#FF0000">dracut: FATAL: No or empty root= argument<br>dracut: Refusing to continue<br>dracut: FATAL: No or empty root= argument<br>dracut: Refusing to continue<br><br><br>Signal caught!<br>
<br>Boot has failed, sleeping forever.</font></div><div><br></div><div><br></div><div>Am I missing something in pxe.cfg ?</div><div>Does vmlinuz of RHEL6 expects something more than RHEL5 vmlinuz?</div><div><br></div><div>
Can anybody please guide me on this issue?</div></span>