From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vjyde-000577-7H for mharc-grub-devel@gnu.org; Fri, 22 Nov 2013 16:51:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjydX-00056R-Dt for grub-devel@gnu.org; Fri, 22 Nov 2013 16:51:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjydS-0004t6-Dr for grub-devel@gnu.org; Fri, 22 Nov 2013 16:51:39 -0500 Received: from mail-ee0-x22d.google.com ([2a00:1450:4013:c00::22d]:52606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjydS-0004t0-67 for grub-devel@gnu.org; Fri, 22 Nov 2013 16:51:34 -0500 Received: by mail-ee0-f45.google.com with SMTP id d49so955395eek.18 for ; Fri, 22 Nov 2013 13:51:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=dndNqs+xrHFiAmNZdSrxYc2inbrYmc+eqCI2BDu/TUY=; b=gTkxZtwP3xBTanUTUUelEsHRHWnyRsX70yOjeuWt7m+SuvGb0Psnb5zSERv6xpbLNp 4d2vWOrx/XBzKWU7McUbOVC/YTb1w5XBgecmVH/URa19S3q65Om7H8e3AbccnIXM4he6 rrLaoNK41vyVtKKudhVMdpi4HQjNhA8Om54pewJ9FPYsxadwlC+1bbCIjb7Ck84QUHNE j0GSKHQxcFXjIkXl3u73Nmo6itLEJQZTiwMmI6J6CGjaGb01OPhHDchFQZSNbpqcqRAt cbBR06ns9gf5p1bILwEJiXKaUzzswq5BSiblEbXGW4TLbsFkKx73ys4QPoIy0ssFPJdz dPuQ== X-Received: by 10.14.210.200 with SMTP id u48mr10300eeo.63.1385157092844; Fri, 22 Nov 2013 13:51:32 -0800 (PST) Received: from [192.168.1.121] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id a45sm63283787eem.6.2013.11.22.13.51.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 13:51:31 -0800 (PST) Message-ID: <528FD1D8.9040601@gmail.com> Date: Fri, 22 Nov 2013 22:51:20 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: grub2: Patch to correct hidden timeout behavior References: <528FBFCB.2010804@googlemail.com> In-Reply-To: <528FBFCB.2010804@googlemail.com> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2LSSFVATHJXJCQQMCGGPA" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22d X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Nov 2013 21:51:44 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2LSSFVATHJXJCQQMCGGPA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 22.11.2013 21:34, Andreas Cadhalpun wrote: > Hi, >=20 > I'm using Debian with grub version 2.00-20. > My /etc/default/grub configuration contains the following lines: > GRUB_TIMEOUT=3D-1 > GRUB_HIDDEN_TIMEOUT=3D3 >=20 > Expected behavior: When booting, grub should display a three second > countdown and if no key is pressed, boot the default grub entry, after > the countdown finishes. >=20 > Current behavior: When booting, grub displays a three second countdown > and if no key is pressed, the grub menu is shown, after the countdown > finishes. >=20 > The problem lies in the 00_header.in script [1], specifically: > if sleep$verbose --interruptible ${1} ; then > set timeout=3D${2} > fi >=20 AFAIR this behaviour is documented and reason for it are platforms without keystatus. Just set GRUB_TIMEOUT to 0 to have behaviour that you want. > This just always sets the countdown to GRUB_TIMEOUT, even if the sleep > is not interrupted. I think it should be something like: >=20 > if sleep$verbose --interruptible ${1} ; then > set timeout=3D0 > else > set timeout=3D${2} > fi >=20 > I created a patch to fix this (see attachment). Please include the patc= h. >=20 > Best regards, > Andreas >=20 >=20 > 1: http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub.d/00_header= =2Ein >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 ------enig2LSSFVATHJXJCQQMCGGPA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlKP0eIACgkQmBXlbbo5nOspvgEAraVirtGfKMVJeUsUwCvWz4ac TcSL0SxiJgAFc6wxzKcA/jM4Yp7dJp77VSa5rWiX/CefY95wImgd8SLN09teE9IE =5GVv -----END PGP SIGNATURE----- ------enig2LSSFVATHJXJCQQMCGGPA--