[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Split of normal mode (version 2)
From: |
Yoshinori K. Okuji |
Subject: |
Re: [PATCH] Split of normal mode (version 2) |
Date: |
Sat, 4 Apr 2009 03:40:33 +0900 |
User-agent: |
KMail/1.9.10 |
On Tuesday 31 March 2009 02:41:14 Bean wrote:
> Hi,
>
> This new patch make some changes based on the discussion of previous patch.
>
> 1, Move script engine to script/sh (sh.mod)
> 2, Move generic menu code to menu (menu.mod)
> 3, Move text menu viewer to menu/text (textmenu.mod)
> 4, Move misc function to lib (misc.mod)
> 5, Move setjmp to lib (setjmp.mod)
I don't agree on the last two. Also, I don't like that you have just removed
the rescue command.
> Now normal.mod only contains the reader code. To configure script
> engine and viewer, you should add these lines at the beginning of
> grub.cfg:
>
> insmod sh
> handler parser sh
> insmod textmenu
I prefer a more sophisticated approach (note: I hate manual loading).
For example, we can allow a config file to have a shebang, like "#!sh". If not
specified, GRUB can assume that "sh" is used, and load it automatically. This
kind of technique could even allow for using different languages in one
setup.
For textmenu, I think it makes sense to have a command "textmenu". Just
like "boot", GRUB can execute "textmenu" implicitly if a config file defines
any menu entry but does not execute any menu command. This way, textmenu is
automatically loaded.
Regards,
Okuji
- Re: [PATCH] Split of normal mode (version 2),
Yoshinori K. Okuji <=
- Re: [PATCH] Split of normal mode (version 2), Bean, 2009/04/03
- Re: [PATCH] Split of normal mode (version 2), Bean, 2009/04/04
- Re: [PATCH] Split of normal mode (version 2), Yoshinori K. Okuji, 2009/04/05
- Re: [PATCH] Split of normal mode (version 2), Bean, 2009/04/05
- Re: [PATCH] Split of normal mode (version 2), Yoshinori K. Okuji, 2009/04/05
- Re: [PATCH] Split of normal mode (version 2), Bean, 2009/04/06