For some builtin commands like saving of the default menu
entry, etc, some further distinction has to be built in,
if SUPPORT_DISKLESS is removed.
This may also be true for some other places in the code
like asm.S, etc...
So to solve the problem with the diskless support together
with the serial console, a second solution can be found.
The diskless setup `' must be done between preset file
sourcing and further starting GRUB (reading config
file or starting command interpreter).
Bye
Christoph P.
--
-------------------------------------------------------
private: [EMAIL PROTECTED]
company: [EMAIL PROTECTED]
--- Begin Message ---
As there is now the possibility to do the bootp call
with the option `--with-configfile', the whole diskless
environment setup can be done in the preset menu (for
exmaple a default preset menu for the "--enable-diskless"
option and an overridden preset menu with the
"--enable-preset-menu=FILE" option.
This method has a big advantage for the use of serial
consoles:
The setup for the serial console can be done
before the bootp request is done. In the current
GRUB version the GRUB seems to block, if the
BOOTP server does not answer or if there is
a link problem.
So the preset file for the use of serial console should
be:
serial --unit=0 --speed=19200
terminal --timeout=0 serial
bootp --with-configfile
root (nd) # only executed here, if no menu file found
The default preset file is
bootp --with-configfile
root (nd) # only executed here, if no menu file found
Do you GRUB people also think it is a good idea ?
The changes:
-----------
*) Default preset file for diskless setup
*) Remove code setting up environment for diskless
*) macro DISKLESS_SUPPORT is not needed any more
*) nbgrub and pxegrub is built up with pre_stage2 instead of "diskless"
Comments on this are welcomed ....
Bye
Christoph Plattner
-------------------------------------------------------
private: [EMAIL PROTECTED]
company: [EMAIL PROTECTED]
--- End Message ---