[CentOS] interactive %pre in kickstart?

Wed Mar 21 09:53:14 UTC 2007
Walt Reed <wreed at vinq.com>

On Wed, Mar 21, 2007 at 02:11:40AM +0000, Will McDonald said:
> On 21/03/07, Florin Andrei <florin at andrei.myip.org> wrote:
> >Will McDonald wrote:
> >>
> >> If you know the MAC address of the system before install then you
> >> could customise the install on that basis.
> >>
> >> i.e. I know the MAC[s] of this box so when they're detected use
> >> ks-mail.cfg or ks-web.cfg as appropriate, then have a front end to add
> >> MACs use specific kickstart configs?
> >
> >Good idea when replacing an existing system.
> >
> >Doesn't work that well when adding new systems, or building a new
> >environment.
> 
> Yes and no.
> 
> Most modern rackmount kit comes with a tear-off system info card with
> MAC address, asset tag and the like attached for this sort of purpose.
> Obviously the value of this depends on your build systems but you
> should, theoretically, be able to rack a system and build it with
> minimal intervention once the tear-off tag's information's inserted
> into your management systems [1].

What I do is let them grab the default install, and then I grab the mac
out of the dhcp.leases file. Nuke the dirve with "dd" and reboot so it
get's the customized install. Helps with those pesky HP servers that do
not have the MAC on the outside of the box.