From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eggJe-00041C-FF for guix-patches@gnu.org; Tue, 30 Jan 2018 19:31:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eggJZ-0006o8-Tj for guix-patches@gnu.org; Tue, 30 Jan 2018 19:31:54 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42091) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eggJZ-0006ni-Q2 for guix-patches@gnu.org; Tue, 30 Jan 2018 19:31:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1egfMk-0000jd-Az for guix-patches@gnu.org; Tue, 30 Jan 2018 18:31:02 -0500 Subject: [bug#30216] [WIP v5] services: agetty: Make tty optional. Resent-Message-ID: Date: Wed, 31 Jan 2018 00:30:18 +0100 From: Danny Milosavljevic Message-ID: <20180131003018.23bf45d7@scratchpost.org> In-Reply-To: <87r2q7vzei.fsf@gnu.org> References: <20180124131219.14202-1-dannym@scratchpost.org> <20180124133147.15060-1-dannym@scratchpost.org> <87r2q7vzei.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30216@debbugs.gnu.org Hi Ludo, > I think this would work: > > (let* ((consoles (find-long-option "console" (linux-command-line))) > (console-ttys (remove (lambda (console) > (string-prefix? "tty" console)) > (string-tokenize consoles not-comma)))) "ttyS0" starts with "tty" but should not be removed... > Maybe default to /dev/ttyS0? Sounds unsafe. Also, on x86_64 that's not really useful either. It would be good to have a way to the not start the service after all in that case.