On Thu, Jun 25, 2009 at 5:42 PM, Alok Aggarwal<Alok.Aggarwal at sun.com> wrote:
>
>>>> Even better would be to have both the install and non-install entries in
>>>> the
>>>> grub menu all the time, and have a way on the server to set which one
>>>> was
>>>> the default.
>>>
>>> We considered providing this choice as part of the grub
>>> menu. It turns out that that's not very scriptable which
>>> is why we didn't want to go down that route.
>>>
>>
>> I think this is a fairly unconvincing justification. ?For sites that know
>> what default they'd like to have, this should be expressable via the
>> menu.lst, creation of which is completely scriptable on the server side, of
>> course. ?Requiring use of expect is comparatively quite difficult, IMHO.
>
> So, how does it work when I want to script the menu.lst
> such that the machine does AI once and then just does, say,
> a network boot (if that's what the boot order has set)
> thereafter?

Can you detect on the server that AI has been invoked?

If so, then I go to the server, say "I want AI for this host just the
once", and it writes
the menu.lst so that AI happens. Client boots, downloads menu.lst,
invokes AI. The
server notices the AI installation has been invoked, rewrites menu.lst
so that AI isn't
the default so that the right thing happens next time.

(Or even simply resets it after 30 minutes, which is similar to the
way that setting
bootmode from ipmi is only temporary.)

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

Reply via email to