Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MDJib-0008WF-FD for mharc-grub-devel@gnu.org; Sun, 07 Jun 2009 10:51:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDJia-0008Vv-0C for grub-devel@gnu.org; Sun, 07 Jun 2009 10:51:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDJiV-0008TP-BP for grub-devel@gnu.org; Sun, 07 Jun 2009 10:51:27 -0400 Received: from [199.232.76.173] (port=57621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDJiV-0008TM-5W for grub-devel@gnu.org; Sun, 07 Jun 2009 10:51:23 -0400 Received: from mail-bw0-f212.google.com ([209.85.218.212]:44836) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDJiU-00025y-O7 for grub-devel@gnu.org; Sun, 07 Jun 2009 10:51:22 -0400 Received: by bwz8 with SMTP id 8so710630bwz.42 for ; Sun, 07 Jun 2009 07:51:20 -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 :content-transfer-encoding; bh=ermwCJDRs0g1gjeNZ4FYHIKei+u7XUoinxFi0V1Uxgw=; b=JRZieCHXw9vV80a/xsh9XMC/tOWPRc2j6EEdlMaXfH7nrjc/yxOcjeZTHS5GNlxTAg J6GbtTELDbzjonxdJXRD3iDm1D7YOM9XwNoYzyugJVwJNADOzj2rdRwz+FMFGzyrzCx6 cMpY4uarYJwGUmicgUNvDNSeUku+m7CX6QG4o= 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:content-transfer-encoding; b=ByvE6gQCVAoybOJ8CRP7QvkS+f4BT7SPuiH/89TZKoYAfyvY5VDCkiyWeBhd1IL9yp iREN9azFFs2MrhqEteH4V5Pa9O/Vx3FkyXQtN8WVt18dqcmNb1sOtL8b2157dfH1Vrjd 9Ed4wVzbNSUIFNW2YrwRMchBOUTAEvF8Bu8Wg= MIME-Version: 1.0 Received: by 10.204.113.12 with SMTP id y12mr5515101bkp.214.1244386280830; Sun, 07 Jun 2009 07:51:20 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Jun 2009 16:51:20 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] savedefault 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: Sun, 07 Jun 2009 14:51:28 -0000 Hello. Welcome back On Sun, Jun 7, 2009 at 11:35 AM, Bean wrote: > Hi, > > Actually, I'm thinking about a more generic method to implement this > feature with events. The menu viewer fire events at certain > circumstance, and we can configure the commands to execute. For > example, we could have a menu.select event fire when a menu item is > selected, and use something like this in grub.cfg: > > event add menu.select save_env saved_entry > > Command "save_env saved_entry" would be run automatically, no need to > patch up the menu items. Often user doesn't want some entries to be saved as default. E.g. "single user" entries. I know that it's easy to revert to other method but if nearly everyone does your work will be effort for nothing > > One advantage with the event model is that it can handle password at > the same time, for example, we could write something like this: > > event add menu.select_check password > event add menu.commandline_check password > > password command is run when user tries to select the menu item or > enter command line. > > On Mon, Jun 1, 2009 at 6:48 PM, Vladimir 'phcoder' > Serbinenko wrote: >> Hello. Here is a long-awaited savedefault patch. Works correctly only >> if my scripting fix is applied >> >> -- >> Regards >> Vladimir 'phcoder' Serbinenko >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> >> > > > > -- > Bean > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko