Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MEmq1-0000A1-Oo for mharc-grub-devel@gnu.org; Thu, 11 Jun 2009 12:09:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEmpz-00007x-AL for grub-devel@gnu.org; Thu, 11 Jun 2009 12:09:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEmpu-00005G-Tb for grub-devel@gnu.org; Thu, 11 Jun 2009 12:09:11 -0400 Received: from [199.232.76.173] (port=40225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEmpu-000059-IV for grub-devel@gnu.org; Thu, 11 Jun 2009 12:09:06 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:42417) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MEmpu-0006vU-4j for grub-devel@gnu.org; Thu, 11 Jun 2009 12:09:06 -0400 Received: by bwz19 with SMTP id 19so27026bwz.42 for ; Thu, 11 Jun 2009 09:09:04 -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 :content-transfer-encoding; bh=Q0rI6tzMlvU0H9k9MchKRnMYGKKane/idYThwpDcQPo=; b=atjnK81yfUyzxVcqXXyY3W2OaZScwY/EC0jeFE3YdvH2fL9wCtRPfZPON6ANYzm/xH tM5ueDadd8AmGZT4xsZoyv1j+B0jhZ0ZnRzw9P9VeEJV05lFy9qHChXLmbcA17eBvi9x osLWkKt0FSMIY8DfgiL4DTKUPzhMlor9amSVE= 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:content-transfer-encoding; b=NXM57jwBCzVrqNNZsqHEecnj8IKMBzN2vPb3QbVnkUYb83SB5j3qplCAf650WxCXcW saeIowoiSRxH4wx+rqHvn0o8iBvmFVXfHxZttbXFxUVoG13RyEFqfgaRFa1LzlAI2KB1 FOP1KxVDZi0/fPrgCD3FWuEa8Oq6KEID6iqHM= MIME-Version: 1.0 Received: by 10.204.120.201 with SMTP id e9mr2628659bkr.187.1244736543288; Thu, 11 Jun 2009 09:09:03 -0700 (PDT) In-Reply-To: <1244067102.3407.51.camel@fz.local> References: <1244022215.3429.17.camel@fz.local> <1244062540.20653.11.camel@mj> <1244067102.3407.51.camel@fz.local> Date: Thu, 11 Jun 2009 18:09:03 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: grub-mkconfig fails on every non i386-pc because of gfxterm/vbe 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, 11 Jun 2009 16:09:11 -0000 On Thu, Jun 4, 2009 at 12:11 AM, Felix Zielcke wrote: > Am Mittwoch, den 03.06.2009, 16:55 -0400 schrieb Pavel Roskin: >> On Wed, 2009-06-03 at 11:43 +0200, Felix Zielcke wrote: >> > I wonder why nobody on this list noticed this yet. >> > Jordi reported this already on Debian a while ago [0] >> > >> > It fails with `No suitable backend could be found for gfxterm.' >> > The problem is that gfxterm is used when nothing is explicitly specifi= ed >> > and the fonts were compiled, but the fails because vbe.mod only gets >> > compiled for i386-pc whereas gfxterm.mod gets compiled for every arche= s. >> >> It looks like a conflict between grub-mkconfig and 00_header. >> grub-mkconfig sets GRUB_TERMINAL_OUTPUT to gfxterm because gfxterm.mod >> is present, but 00_header refuses to use it because vbe.mod is absent. >> >> Or maybe Debian sets GRUB_TERMINAL_OUTPUT to gfxterm somewhere. > > No, by default we don't set GRUB_TERMINAL_OUTPUT at all. The correct solution would be to check the presence of graphical backend and base the default on it. Or even better is to make the default depend on platform. It would solve the situations in which video backend is available but known to cause problems > >> > I suggest as Jordi to just change the `exit 1' to =B4exit 0' and telli= ng >> > the user that it falls back to native terminal: >> >> I believe it's a wrong fix, as it would not prevent adding the gfxterm >> code to grub.cfg. > > Yes it won't. It would only prevent it from completely failing if > gfxterm isn't avaible. > >> I believe the fix belongs to grub-mkconfig (if it's not a Debian >> specific issue). =A0Setting defaults in grub-mkconfig should be done ver= y >> carefully, as the numbered scripts treat those defaults as explicit >> requests by the user. > > So you would prefer something like the attached patch? > Though then we'll need to tell people to explicit enable gfxterm. > > -- > Felix Zielcke > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > --=20 Regards Vladimir 'phcoder' Serbinenko