Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KZx2b-00043d-H2 for mharc-grub-devel@gnu.org; Sun, 31 Aug 2008 20:13:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZx2a-00042R-2L for grub-devel@gnu.org; Sun, 31 Aug 2008 20:13:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZx2V-0003vb-Ck for grub-devel@gnu.org; Sun, 31 Aug 2008 20:13:07 -0400 Received: from [199.232.76.173] (port=55560 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZx2V-0003v9-7B for grub-devel@gnu.org; Sun, 31 Aug 2008 20:13:03 -0400 Received: from rv-out-0708.google.com ([209.85.198.250]:32873) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZx2V-0003BR-0g for grub-devel@gnu.org; Sun, 31 Aug 2008 20:13:03 -0400 Received: by rv-out-0708.google.com with SMTP id k29so1689082rvb.6 for ; Sun, 31 Aug 2008 17:13:01 -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:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Y6b6l/Ayd9NIbbNdG/6aYDBoFmq1EKJvWapbveqAw3Y=; b=RdvL9N4PFCNk8opUI5HgvSCGrVGtLzyK1g/2n1g7mhXLI9jCrZdv0dqKbeBuHSd/i2 bRasNr5kE8Ks/0XqrTd8411+y0Df5VF7vQoEswL7WGoWAP8ZyCjuobZMkzlvsRjv+C7j pzA7twMiBRp30eYgRvPK9JHc0JrtwrBM8LNtA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=TPWfAYpYVuc3zdY6/YyDYv7QPCax808UL8tupKnbkpIEg6q9rIw95jOBbU/MhICu51 Tj7IWwp5hxoN0cBpa3613qaml80kIchAgfT5LMl19c/VI4QrEg8ZStAp3ObBnYN8xGVm ld0DAcMlYudLBgoJywgATQV7e3rrF6YSdTZfs= Received: by 10.141.66.16 with SMTP id t16mr3037025rvk.168.1220227981605; Sun, 31 Aug 2008 17:13:01 -0700 (PDT) Received: by 10.140.162.8 with HTTP; Sun, 31 Aug 2008 17:13:01 -0700 (PDT) Message-ID: <11e2e7a90808311713m392a5968j69801ea46143e643@mail.gmail.com> Date: Sun, 31 Aug 2008 18:13:01 -0600 From: "Niko Cavallini Araya" To: grub-devel@gnu.org In-Reply-To: <11e2e7a90808311704x41fdbc52k26542490697d44aa@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <11e2e7a90808311704x41fdbc52k26542490697d44aa@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Hiddenmenu for grub2 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: Mon, 01 Sep 2008 00:13:08 -0000 Hi, this week I made a clean debian sid install and decided to install grub2 (grub-pc) instead of -legacy. It is working nicely, great job there! Thank you! I wanted to add the "hiddenmenu" functionality found in grub-legacy, to this end I came across the previous version of http://grub.enbug.org/Hiddenmenu I got carried away and did a few (3) modifications that offer support for the legacy "hiddenmenu" functionality from /etc/default/grub. the idea is that its clear and easy to turn on but its off by default. First is /etc/grub.d/03_hiddenmenu _________ #!/bin/sh # This is to provide legacy "hiddenmenu" from /etc/default/grub if [ "x${GRUB_HIDDENMENU}" = "xtrue" ]; then cat << EOF echo -n "Press ESC to enter the menu... " if sleep --verbose --interruptible ${GRUB_TIMEOUT} ; then set timeout=${GRUB_TIMEOUT} else set timeout=-1 fi EOF fi _________ Second added this to /etc/default/grub _________ # Uncomment to hide the menu (use 'ESC' to display) #GRUB_HIDDENMENU=true _________ And finally added GRUB_HIDDENMENU in the optional user defined vars in update-grub I chose to use 03 so that nothing is shown at boot time unless there is a need for it. timeout=-1 so that there is no timeout after the menu is shown. All this can be added in 00_header to avoid setting timeout twice. I tested this with and without graphical terminal. How does this all look? -- Saludos Niko