[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GITGRUB] New menu interface (implementation)
From: |
Bean |
Subject: |
Re: [GITGRUB] New menu interface (implementation) |
Date: |
Thu, 29 Oct 2009 17:52:34 +0800 |
On Thu, Oct 29, 2009 at 5:33 PM, Vladimir 'phcoder' Serbinenko
<address@hidden> wrote:
>> BTW, the save_env method doesn't works menu items generated
>> dynamically. For example, the menu items added by osdetect.lua or sub
>> menu items by menu_create.
>>
>>
> Then it's a bug that should be fixed and not swept under the carpet
Hi,
It's not a bug, we can't just add save_env default in every auto
generated item, what if users don't want to auto save ? At best, we
need to add a variable to control its behavior, for example
savedefault=1. But then, we can just check the savedefault variable to
decide whether to save or not, no need to use save_env at all.
Also, with save_env, the command needs to be inserted by
grub-mkconfig, it's not easy to edit the menu file by hand because you
need to insert it in every item. Also, for grub-mkconfig generated
item, it's either all on or all off, you can't save some of the items.
BTW, this actually quite similar to --users. To authorized a user, you
don't need a option, for example, you can add this to every entry that
needs authorization:
if password_check user1,user2; then
command
fi
---
Bean
My repository: https://launchpad.net/burg
- Re: [GITGRUB] New menu interface (implementation), (continued)
- Re: [GITGRUB] New menu interface (implementation), Peter Cros, 2009/10/24
- Re: [GITGRUB] New menu interface (implementation), Peter Cros, 2009/10/25
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/26
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/27
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/28
- Re: [GITGRUB] New menu interface (implementation), Vladimir 'phcoder' Serbinenko, 2009/10/28
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/28
- Re: [GITGRUB] New menu interface (implementation), Vladimir 'phcoder' Serbinenko, 2009/10/29
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/29
- Re: [GITGRUB] New menu interface (implementation), Vladimir 'phcoder' Serbinenko, 2009/10/29
- Re: [GITGRUB] New menu interface (implementation),
Bean <=
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/30
- Re: [GITGRUB] New menu interface (implementation), Michal Suchanek, 2009/10/20
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/20
- Re: [GITGRUB] New menu interface (implementation), address@hidden, 2009/10/09
- Re: [GITGRUB] New menu interface (implementation), Michal Suchanek, 2009/10/09
- Re: [GITGRUB] New menu interface (implementation), address@hidden, 2009/10/09
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/09
- Re: [GITGRUB] New menu interface (implementation), Michal Suchanek, 2009/10/09
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/09
- Re: [GITGRUB] New menu interface (implementation), Michal Suchanek, 2009/10/08