Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3F9L-0000jL-TL for mharc-grub-devel@gnu.org; Wed, 28 Oct 2009 16:29:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3F9H-0000ej-TQ for grub-devel@gnu.org; Wed, 28 Oct 2009 16:29:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3F9D-0000Z8-65 for grub-devel@gnu.org; Wed, 28 Oct 2009 16:29:39 -0400 Received: from [199.232.76.173] (port=53760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3F9D-0000Yw-1N for grub-devel@gnu.org; Wed, 28 Oct 2009 16:29:35 -0400 Received: from mail-pz0-f192.google.com ([209.85.222.192]:58478) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3F9C-0008QT-6F for grub-devel@gnu.org; Wed, 28 Oct 2009 16:29:34 -0400 Received: by pzk30 with SMTP id 30so847415pzk.24 for ; Wed, 28 Oct 2009 13:29:31 -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=DV7wmi4LtS2ltESWIajlR/BBmgg3d1Dwru+p0CyYEMo=; b=bSm/HKWBF5oCgs0O0gxNHs0ItkXYQegsyJ9pLzxNyWYWyzyYHLEz11EprPbi5I2Uss bfosE0nnmJY2iGkECixPsLnR+npfbweMc8aAdMJSW0YLYjdQy0oYB110vjkM4f6Gc1HN WgVFpMNiM/JlEqgxWOX18CgAu5Tnmgl2/1s7g= 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=eLMw1BS+ZL20QF/zu/u3OxrXIytQyFFXLcFRbeD/lYviITjUZpK2HjjUo0/kgxzEfe ih9uPf2U/05CH9EO8DCFjntrihUF1Uj6pJ7axbPvRPXvwQXzNPvNpymtf6o6s7lnUvUv FTnbpeaiqo46Y9hOUnX7lTvG5nzSW245/Hk5I= MIME-Version: 1.0 Received: by 10.140.158.11 with SMTP id g11mr2213327rve.33.1256761768700; Wed, 28 Oct 2009 13:29:28 -0700 (PDT) In-Reply-To: References: <48f46e890910222259t1c8508b3h413d69020a373f32@mail.gmail.com> <48f46e890910240104o47421525o2cb7013a12696dc3@mail.gmail.com> <48f46e890910250727g6bb5b762oeb8ca94f684b1cca@mail.gmail.com> Date: Thu, 29 Oct 2009 04:29:28 +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: Wed, 28 Oct 2009 20:29:40 -0000 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. 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 -- Bean My repository: https://launchpad.net/burg