From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: question about pty, agetty for an intermediate virtual server image Date: Sun, 02 Apr 2017 12:31:19 -0400 Message-ID: <86vaqmwz3c.fsf@gmail.com> References: <20170331125956.rhlwjg45vwo3pgwh@abyayala> <20170331234321.GA10435@jasmine> <20170401072740.kgzz3zbtikn5hpg5@abyayala> <20170401202901.GA10480@jasmine> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuiPY-0001Hj-Sw for guix-devel@gnu.org; Sun, 02 Apr 2017 12:31:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuiPV-00086Q-PO for guix-devel@gnu.org; Sun, 02 Apr 2017 12:31:28 -0400 Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:33412) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuiPV-00082o-K9 for guix-devel@gnu.org; Sun, 02 Apr 2017 12:31:25 -0400 Received: by mail-qt0-x231.google.com with SMTP id i34so96590409qtc.0 for ; Sun, 02 Apr 2017 09:31:21 -0700 (PDT) In-Reply-To: <20170401202901.GA10480@jasmine> (Leo Famulari's message of "Sat, 1 Apr 2017 16:29:01 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org On 04/01/2017 at 16:29 Leo Famulari writes: > On Sat, Apr 01, 2017 at 07:27:40AM +0000, ng0 wrote: >> Leo Famulari transcribed 2.8K bytes: >> > And you will probably want a non-graphical GRUB menu as well (this >> > should be parameterized eventually...): >> >> Yeah, that would be useful as it is not uncommon for servers. > > Here's a patch that works in my tests: > > https://bugs.gnu.org/26334 Hi Leo, I gather you are focused on KVM deployment, so this may be off- topic. But FWIW, the patch that I use to run GRUB menus both locally on the console and over IPMI SOL (serial over LAN) on an headless ASRock server (MT-c224 w/ ASPEED 2300 BMC controller) is attached below. The important point is that 'terminal_output console' displays grub menus on _both_ the local console and via serial ... but ... grub does not receive the serial inputs ... unless ... 'terminal_input serial console' is also specified. I don't recall the exact rationale for 'serial --unit=0 --speed=115200', but I am pretty sure it was needed. I can check on that if you like. So... it would sure be "nice" if you could expand your patch to also support this use case. Best, George diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm index 4f9bde6a6..8199f6f0b 100644 --- a/gnu/system/grub.scm +++ b/gnu/system/grub.scm @@ -199,7 +199,8 @@ system string---e.g., \"x86_64-linux\"." insmod vga fi - terminal_output gfxterm + serial --unit=0 --speed=115200 + terminal_input serial console; terminal_output console " ""))