[gPXE] PATCH: Allow "dhcp" command to iterate over multiple interfaces like autoboot()

Stefan Hajnoczi stefanha at gmail.com
Sat Jul 24 14:28:22 EDT 2010


On Sat, Jul 24, 2010 at 7:21 PM, Lars Kellogg-Stedman <lars at oddbit.com> wrote:
>> Can you explain why -c is necessary to stay compatible with the
>> current command?  The current command takes one argument and fails if
>> the interface doesn't exist.
>
> I wanted to preserve the "fail on unknown interface" semantics, even
> with multiple interfaces on the command line.  I'm not sure in
> retrospect if this matters or not.  It seemed worthwhile to have to
> have both behaviors (because maybe the unknown interface is due to a
> spelling error and it *should* fail?).  I'm not wedded to this option,
> and if you think that removing it simplifies things I'm all for it.

Thanks for explaining.  I think having both behaviors is useful.

If a gPXE script is used on a range of different machines it could be
handy to skip unknown interfaces.

On the other hand, it can make sense to error for the reason you mentioned.

Stefan


More information about the gPXE mailing list