Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3RgR-00056I-Pe for mharc-grub-devel@gnu.org; Thu, 29 Oct 2009 05:52:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3RgP-00055r-6V for grub-devel@gnu.org; Thu, 29 Oct 2009 05:52:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3RgK-000559-A8 for grub-devel@gnu.org; Thu, 29 Oct 2009 05:52:40 -0400 Received: from [199.232.76.173] (port=58913 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3RgK-00054y-0a for grub-devel@gnu.org; Thu, 29 Oct 2009 05:52:36 -0400 Received: from mail-pw0-f47.google.com ([209.85.160.47]:52322) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3RgJ-000588-LB for grub-devel@gnu.org; Thu, 29 Oct 2009 05:52:35 -0400 Received: by pwj10 with SMTP id 10so1391491pwj.26 for ; Thu, 29 Oct 2009 02:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=nwSsIFmszpBTyNzXZomG1zp6ABHa0sV9yInZ3POUMx0=; b=wZojTO1IkMIvUEuQOl9MkEecN78YN0p/8zbF+E1giHUVwQbtEKqT1aip7zufm4QmxK ofDljc6s1OApbFKlTkinwnVGkHIL6qpBu+VE6psUPRH6k7GLBIXrAUZ1pJnWTcYKbJ9p IPsdNSOhdzyOSd91nmKgUft18DEE27iAatniE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=A+XvXYRaX+bz5XJ0IwKzw2RDQWsMDjdwufFcwp+jnShtRBzZec6xMvO6k2vFfKcXDp mudxoIyLKes5G+6yGOTRs5esQh444K3/BuAwRBRTNa1aLrNLE00sraCu4AOVKs4alDXb ASiZQlLhukScy3iGP62Rd3Ew42dJBdOqQ7XHM= MIME-Version: 1.0 Received: by 10.141.1.12 with SMTP id d12mr2214502rvi.268.1256809954846; Thu, 29 Oct 2009 02:52:34 -0700 (PDT) In-Reply-To: <4AE96168.8070605@gmail.com> References: <48f46e890910250727g6bb5b762oeb8ca94f684b1cca@mail.gmail.com> <4AE8B3B3.7090103@gmail.com> <4AE95BEC.4040102@gmail.com> <4AE96168.8070605@gmail.com> Date: Thu, 29 Oct 2009 17:52:34 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2009 09:52:41 -0000 On Thu, Oct 29, 2009 at 5:33 PM, Vladimir 'phcoder' Serbinenko 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