From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: [PATCH] fix pygrub domU grub.conf timeout=0 handling Date: Wed, 19 Aug 2009 20:27:08 +0300 Message-ID: <20090819172708.GG19938@edu.joroinen.fi> References: <20090819172128.GD19938@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+xNpyl7Qekk2NvDX" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20090819172128.GD19938@edu.joroinen.fi> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --+xNpyl7Qekk2NvDX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 19, 2009 at 08:21:28PM +0300, Pasi K=E4rkk=E4inen wrote: > Hello, >=20 > When you install Fedora 11 PV domU/guest with virt-install or virt-mana= ger, > it will have timeout=3D0 in it's grub.conf. This is a new default in F1= 1. >=20 > pygrub of Xen 3.4.1 doesn't seem to be able to handle timeout=3D0, inst= ead it > waits the user to press ENTER.. this causes confusion and makes it look > like the guest has crashed. Graphical VNC console is not yet available = at > this point, so the kernel can be only chosen from "xm console ", > where pygrub is waiting for user input. >=20 > This patch fixes the problem and let's you start F11 domUs without goin= g to > the text console to select the kernel. The change is taken from the=20 > RHEL5.3 version of pygrub. >=20 > Patch is tested with Fedora 11 (timeout=3D0) and CentOS 5.3 (timeout=3D= 5) domUs. >=20 And actually attached this time. -- Pasi --+xNpyl7Qekk2NvDX Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="pygrub-fix-zero-timeout.patch" --- pygrub-xen341 2009-08-17 22:22:29.000000000 +0300 +++ pygrub 2009-08-19 18:39:17.000000000 +0300 @@ -447,7 +447,7 @@ # So we may come here even after a key has been pressed. # Check both timeout and mytime to avoid exiting # when we shouldn't. - if timeout != -1 and mytime >= int(timeout): + if mytime >= int(timeout): self.isdone = True break else: --+xNpyl7Qekk2NvDX Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --+xNpyl7Qekk2NvDX--