From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3Foo-0007sT-0U for mharc-grub-devel@gnu.org; Wed, 28 Oct 2009 17:12:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3Fol-0007oz-Af for grub-devel@gnu.org; Wed, 28 Oct 2009 17:12:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3Fog-0007gP-Gc for grub-devel@gnu.org; Wed, 28 Oct 2009 17:12:30 -0400 Received: from [199.232.76.173] (port=33044 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3Fog-0007gC-DA for grub-devel@gnu.org; Wed, 28 Oct 2009 17:12:26 -0400 Received: from ey-out-1920.google.com ([74.125.78.144]:3956) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3Fog-0007Ud-0D for grub-devel@gnu.org; Wed, 28 Oct 2009 17:12:26 -0400 Received: by ey-out-1920.google.com with SMTP id 3so1516027eyh.34 for ; Wed, 28 Oct 2009 14:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=7K3qMMhwrLATin0l3gj15M+eGUC6Sg3kvXpacEf/DUQ=; b=giiym0DHnfQSdXBRmrDGCB8DBUUrKxk1+xi40GWIGGJV0WqsVTDo+3sPI8MHEfAVs5 9Pb1Sa//PS18AFkmcK3CyLBgipRs6SqBpWyR15NuXaQnXoCymlLrNBPgSezyD476ahBw FdED3tc/fvj/DTTR3ShZHRp75Rd4S/gL1UFlo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=V9Wg+FNzpqQ3djy42jXJC/97tLkoB5fEalaJ0yQWSmFIpiyvTLPYFPB+c5BkF2tkIk L3dri2CFm0xyL7FnEbtyIPiTXsUGNiDEpMuRltDp1z2eIM1HZBc3fel3KGEpXEJ+tYth p/wpSplBFmGQQ2waypuZZbj53VxRRIZ3BbMl8= Received: by 10.211.158.8 with SMTP id k8mr752094ebo.38.1256764344913; Wed, 28 Oct 2009 14:12:24 -0700 (PDT) Received: from debian.bg45.phnet (gprs13.swisscom-mobile.ch [193.247.250.13]) by mx.google.com with ESMTPS id 28sm3966729eyg.6.2009.10.28.14.12.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 Oct 2009 14:12:23 -0700 (PDT) Message-ID: <4AE8B3B3.7090103@gmail.com> Date: Wed, 28 Oct 2009 22:12:19 +0100 From: Vladimir 'phcoder' Serbinenko User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <48f46e890910222259t1c8508b3h413d69020a373f32@mail.gmail.com> <48f46e890910240104o47421525o2cb7013a12696dc3@mail.gmail.com> <48f46e890910250727g6bb5b762oeb8ca94f684b1cca@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Wed, 28 Oct 2009 21:12:31 -0000 Bean wrote: > Hi, > > Update: > > Add timeout, progressbar and savedefault. > > savedefault: > > Variable savedefault set the system default value. If savedefault=1, > save the current boot item. > > You can also overwrite the default value for individual items, in > menuentry statement --save option always save this item, and --nosave > never save the item. If neither --save nor --nosave is specified, the > system default in savedefault variable is checked. > > Why do you need this over having a normal save_env? I don't see any reason to prefer an ad-hoc here over general solution > In the menu section, use property save=1 or save=0 to achieve the same > effect as --save and --nosave. > > You also need to set the environment file, default value is > ${prefix}/env, you can also use envfile variable to overwrite it. > > timeout: > > Use timeout variable to control auto boot. For example: > > set timeout=5 > > it would boot the default item if no key is pressed in 5 seconds. If > timeout=0, boot the default item immediately, although you can press a > key at startup to halt the auto boot. If timeout is not set, auto boot > is disabled. > > progressbar: > > This works in conjunction with timeout. When a timeout value is set, > you can see the process bar at bottom of screen. > > As with this version, all feature from grub legacy has been > implemented. There is a grub.cfg inside the menu directory that shows > some usage: > > set superusers=admin > password admin admin > password user user > > set timeout=5 > > set envfile=/menu/env > set savedefault=1 > load_env > > menuentry Item1 --users user --nosave --class image_tools { > true > } > > menuentry Item2 --save --class image_about { > true > } > > . /menu/menu_efi.cfg > > > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git