From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuayZ-0001vX-4f for guix-patches@gnu.org; Sun, 02 Apr 2017 04:35:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuayU-0006yr-ID for guix-patches@gnu.org; Sun, 02 Apr 2017 04:35:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58224) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuayU-0006yD-E4 for guix-patches@gnu.org; Sun, 02 Apr 2017 04:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cuayU-00064e-8Z for guix-patches@gnu.org; Sun, 02 Apr 2017 04:35:02 -0400 Subject: bug#26334: [PATCH 1/1] system: grub: Enable the use of a non-graphical GRUB menu. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <9b295fdca9e25e89fa90e0000f3b6117bb96f398.1491078152.git.leo@famulari.name> <87wpb3g4f9.fsf@gnu.org> <20170401224345.GA13129@jasmine> Date: Sun, 02 Apr 2017 10:34:01 +0200 In-Reply-To: <20170401224345.GA13129@jasmine> (Leo Famulari's message of "Sat, 1 Apr 2017 18:43:45 -0400") Message-ID: <87fuhrdx8m.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Leo Famulari Cc: 26334@debbugs.gnu.org Hi Leo! Leo Famulari skribis: > On Sun, Apr 02, 2017 at 12:15:54AM +0200, Ludovic Court=C3=A8s wrote: >> Would it be possible to detect whether graphical output is available >> only in GRUB code? > > I'm far from a GRUB expert... > > Apparently, the terminal input and output devices default to the > "platform's native terminal {input,output}": > https://www.gnu.org/software/grub/manual/html_node/Simple-configuration.h= tml > >> Or is the use case a situation where graphical output *is* supported >> but somehow undesirable? > > Yes, that is a potential use case. For example, I have a system based on > an embedded system-on-a-chip that includes a GPU, but no physical video > ports; I must use the serial port. > > I also have this use case on a laptop as a consequence of > . Oh right. > For both of those systems, I've been using a different patch that > has the same effect on the generated grub.cfg. > > Perhaps instead of a graphical? toggle, we could expose the different > values of GRUB_TERMINAL_OUTPUT and GRUB_TERMINAL_INPUT: > > https://www.gnu.org/software/grub/manual/html_node/Simple-configuration.h= tml Yes, that makes sense to me. So I=E2=80=99d say add a =E2=80=98terminal-ou= tput=E2=80=99 field instead of =E2=80=98graphical?=E2=80=99, have that default to "gfxterm" (in= which case it does the current =E2=80=9Cif loadfont=E2=80=A6; setup_gfxterm; fi=E2=80= =9D). WDYT? Thanks! Ludo=E2=80=99.