On 24/08/12 09:18, Mark Christian wrote:
I would like the append line in PXE conf to look like:
   append initrd=/images/cent5.6/initrd.img,/images/cent5.6/dd.img

   ...note the dd.img file is included along with the standard initrd.img

I maintain certain older releases on new hardware, and being able to inject a 
NIC driver into PXE boot is helpful.  I don't see an obvious way to accomplish 
this with cobbler 2.2.3.  Can Cobbler sync the 2 initrd's to 
/tftpboot/images/$distro/ and template the needed PXE config?

Example PXE install with 2 initrd.img:
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Installation_Guide/index.html#sect-Preparing_an_initial_RAM_disk_update-x86

yes, this is possible.
I've had to do it myself - it takes a bit of fiddling/hacking though.

bearing in mind that:
1. cobbler doesn't support multiple initrds directly
2. cobbler deletes everything in your tftproot on a 'sync'

I managed this by putting the driver disk images in a different directory under /tftpboot (or wherever your root is) and editing the pxeboot templates in /etc/cobbler to manipulate the append lines for particular distros/profiles etc. These files are just templates like kickstarts and snippets so you can use cheetah instructions to manipulate the initrd= parts.

I'm not at work at the moment, so I can't recall all the details, but it can be done.

Unless anyone knows a better way of achieving this without patching cobbler itself? (having said that, support for multiple initrds is not a bad RFE)

Regards,

Stuart
--
Stuart Sears RHCA etc.
"It's today!" said Piglet.
"My favourite day," said Pooh.
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to