Overriding localboot options for certain hosts

Hi There

I have IBM x3400M3s that don't boot properly when in legacy PXE mode and
localboot is used. It's a known issue on some servers and the general
response is to use the chain.c32 bootloader. This does work, but I have to
specify the exact drive I want to boot from, which in my case is sdd.

I've figured out that to install to sdd is relatively easy, I can add an
'install-disk' option to my host config, but how do I override the PXELinux
default file which is created post-installation to use the chained
bootloader and sdd?

This is a mixed environment, I manage physicals as well as virtuals which
work fine with the current config, so I'm looking for an override that can
be applied for a particular host group.

Using forman 1.4.1

Thanks

-Thomas

There's a template called "PXELinux default local boot" which is what
get written for all hosts not in build state. Sadly there's no way to
specify a different alternative file for certain hosts, but you can
put an if/else section in that template, something like:

<% if hostgroup.name == "Physicals" -%>
stuff
<% else -%>
other stuff
<% end -%>

HTH,
Greg

ยทยทยท On 11 April 2014 12:51, Thomas Black wrote: > Hi There > > I have IBM x3400M3s that don't boot properly when in legacy PXE mode and > localboot is used. It's a known issue on some servers and the general > response is to use the chain.c32 bootloader. This does work, but I have to > specify the exact drive I want to boot from, which in my case is sdd. > > I've figured out that to install to sdd is relatively easy, I can add an > 'install-disk' option to my host config, but how do I override the PXELinux > default file which is created post-installation to use the chained > bootloader and sdd? > > This is a mixed environment, I manage physicals as well as virtuals which > work fine with the current config, so I'm looking for an override that can > be applied for a particular host group. > > Using forman 1.4.1

Sorry, that should be

<% if @host.hostgroup.name == "Physicals" -%>