From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3LcW-00083F-W0 for mharc-grub-devel@gnu.org; Wed, 28 Oct 2009 23:24:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3LcU-00082o-Qq for grub-devel@gnu.org; Wed, 28 Oct 2009 23:24:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3LcP-00082L-5n for grub-devel@gnu.org; Wed, 28 Oct 2009 23:24:13 -0400 Received: from [199.232.76.173] (port=53500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3LcP-00082I-36 for grub-devel@gnu.org; Wed, 28 Oct 2009 23:24:09 -0400 Received: from mail-px0-f192.google.com ([209.85.216.192]:63410) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3LcO-0002Un-Qq for grub-devel@gnu.org; Wed, 28 Oct 2009 23:24:08 -0400 Received: by pxi30 with SMTP id 30so940316pxi.14 for ; Wed, 28 Oct 2009 20:24:08 -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=qvgHzxfzj6XvPAJnCVevJ+om/kOiZMc78Q8SQpl0ews=; b=SduHdbvdBYTZx3HKNU9KzgXS3gPSABwbkffkSfMkw0n6mIxpjeWrWAqPT1adwJJjrA ZR5rRLHd1Nb+KR4mdFrLpSKe8N8Jc7WI4TFxpml6wvENkAKQmNxo07RZf82NYchF6Wn0 g6LKwO0vmxuQCOw+1WtQCn2SH4VRvtwpH9ZCM= 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=vFfWONeFtKivY6tRctaEjLtpadjBXDPsSKqZn7Hhro7ebWwMpcir/X5BjlQo+uMGNC 4ddS8IAbq2MzxRJaluTgnarJPOvpYw5vVmt0rNrfhHQzLE9d4qv4amKqSe0UnFf/TUhy LWjmbR68ifOPEGTQOKT2YYeWf+XCS0wOmnjCg= MIME-Version: 1.0 Received: by 10.141.34.9 with SMTP id m9mr2259016rvj.84.1256786647931; Wed, 28 Oct 2009 20:24:07 -0700 (PDT) In-Reply-To: <4AE8B3B3.7090103@gmail.com> References: <48f46e890910222259t1c8508b3h413d69020a373f32@mail.gmail.com> <48f46e890910240104o47421525o2cb7013a12696dc3@mail.gmail.com> <48f46e890910250727g6bb5b762oeb8ca94f684b1cca@mail.gmail.com> <4AE8B3B3.7090103@gmail.com> Date: Thu, 29 Oct 2009 11:24:07 +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 03:24:14 -0000 On Thu, Oct 29, 2009 at 5:12 AM, Vladimir 'phcoder' Serbinenko wrote: > 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 Hi, This is more convenient than adding a save_env command to every entry. Users can just set savedefault=1 and all items are saved by default, remove it and it's not saved anymore. They can also config each item individually with --save and --nosave option, which is similar to adding a save_env command at the beginning, but easier to edit. -- Bean My repository: https://launchpad.net/burg