bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: Added "stage2-diskless" build]


From: Yoshinori K. Okuji
Subject: Re: [Fwd: Added "stage2-diskless" build]
Date: Sun, 06 Jan 2002 05:21:34 +0900
User-agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryoae) APEL/10.3 Emacs/20.7 (i686-pc-linux-gnu) MULE/4.0 (HANANOEN)

At Sun, 14 Oct 2001 01:51:27 +0200,
Christoph Plattner wrote:
> In simple words: The preset menu is executed first in any way,
> and is replaced (concerning menu entries) and overridden 
> concerning settings) when a main config file (local or via net)
> is present. The network environment will be activated (if using
> the diskless version) between the preset and the main menu.

I have implemented my own version right now. My version works in a way
similar to yours, but I think mine looks better.

For now, setup_diskless_environment is still called before cmain. But
I'm not sure where the function call should be put. You did this after
reading the preset menu, but what if the user wants to do something
with a network in the preset menu?

That reminds me of an idea that setup_diskless_environment can be
removed. This is because we have the preset menu, so we can put
required commands for setting up a network in it. For example, the
diskless support could be implemented like this:

#if defined(SUPPORT_DISKLESS) || defined(PRESET_MENU_STRING)
# ifdef SUPPORT_DISKLESS
#  define SETUP_NETWORK_STRING  "bootp\n"
# else
#  define SETUP_NETWORK_STRING  ""
# endif

static const char *preset_menu = SETUP_NETWORK_STRING PRESET_MENU_STRING
...


However, I don't know if it is a Good Thing to add
SETUP_NETWORK_STRING into PRESET_MENU automatically. Clearly, this
implementation wouldn't solve your problem, because "bootp" is called
before setting up a serial line. So, should the user himself add
"bootp" when the preset menu is used?? Any comment?

Thanks,
Okuji



reply via email to

[Prev in Thread] Current Thread [Next in Thread]