From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aDVdHkjjnl8AQQAA0tVLHw (envelope-from ) for ; Sun, 01 Nov 2020 16:33:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uI9IGkjjnl+xRAAAbx9fmQ (envelope-from ) for ; Sun, 01 Nov 2020 16:33:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ABED79403A6 for ; Sun, 1 Nov 2020 16:33:11 +0000 (UTC) Received: from localhost ([::1]:44634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZGI2-0004Ew-52 for larch@yhetil.org; Sun, 01 Nov 2020 11:33:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZGHu-0004Ef-GV for bug-guix@gnu.org; Sun, 01 Nov 2020 11:33:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZGHu-0006Ti-6j for bug-guix@gnu.org; Sun, 01 Nov 2020 11:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZGHu-0001QR-3l for bug-guix@gnu.org; Sun, 01 Nov 2020 11:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44347: mingetty --no-clear is hard-coded Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 01 Nov 2020 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44347 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jesse Gibbons , 44347@debbugs.gnu.org Received: via spool by 44347-submit@debbugs.gnu.org id=B44347.16042483305418 (code B ref 44347); Sun, 01 Nov 2020 16:33:02 +0000 Received: (at 44347) by debbugs.gnu.org; 1 Nov 2020 16:32:10 +0000 Received: from localhost ([127.0.0.1]:38325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZGH3-0001PJ-WF for submit@debbugs.gnu.org; Sun, 01 Nov 2020 11:32:10 -0500 Received: from world.peace.net ([64.112.178.59]:57406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZGH2-0001P5-0U for 44347@debbugs.gnu.org; Sun, 01 Nov 2020 11:32:08 -0500 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZGGv-0007pw-Ey; Sun, 01 Nov 2020 11:32:01 -0500 From: Mark H Weaver In-Reply-To: <9da4da56-c557-19be-fac6-f8b9ab8541c5@gmail.com> References: <9da4da56-c557-19be-fac6-f8b9ab8541c5@gmail.com> Date: Sun, 01 Nov 2020 11:30:20 -0500 Message-ID: <87zh413uq0.fsf@netris.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: +E8B+0M7/xKF --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Jesse, Jesse Gibbons writes: > The --no-clear option is hard-coded for mingetty, with no documentation=20 > about why. The mingetty page says, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 --noclear > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 Do not clear the screen before prompting for the login=20 > name (the > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 screen is normally cleared). > > I do not think I am alone in preferring the screen cleared after logout.= =20 You're not alone. I'd also prefer that the screen be cleared. At least, it should be configurable. Here's an *untested* patch to make it configurable, and to change the default behavior to clear. I'm rebuilding my system now, but I have a lot of compiling ahead of me (I don't use substitutes), so it will be a while. I'll report back after I've tested it. In the meantime, does anyone object to changing the default behavior to clear-on-logout, which is the upstream default? Regards, Mark --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-UNTESTED-gnu-mingetty-shepherd-service-Make-clear-on.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] UNTESTED: gnu: mingetty-shepherd-service: Make 'clear-on-logout' configurable. >From 61d0055493c46cdee178d0ffbbf15742de930028 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sun, 1 Nov 2020 11:16:08 -0500 Subject: [PATCH] UNTESTED: gnu: mingetty-shepherd-service: Make 'clear-on-logout' configurable. Also change the default configuration to clear on logout, which is the upstream default. * gnu/services/base.scm (): Add 'clear-on-logout?' field. (mingetty-shepherd-service): Pass the "--noclear" option to mingetty only if 'clear-on-logout?' is #false. --- gnu/services/base.scm | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 5a5c41d588..1f750670c9 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovi= c Court=C3=A8s ;;; Copyright =C2=A9 2015, 2016 Alex Kost -;;; Copyright =C2=A9 2015, 2016 Mark H Weaver +;;; Copyright =C2=A9 2015, 2016, 2020 Mark H Weaver ;;; Copyright =C2=A9 2015 Sou Bunnbu ;;; Copyright =C2=A9 2016, 2017 Leo Famulari ;;; Copyright =C2=A9 2016 David Craven @@ -1024,20 +1024,22 @@ the tty to run, among other things." (define-record-type* mingetty-configuration make-mingetty-configuration mingetty-configuration? - (mingetty mingetty-configuration-mingetty ; - (default mingetty)) - (tty mingetty-configuration-tty) ;string - (auto-login mingetty-auto-login ;string | #f - (default #f)) - (login-program mingetty-login-program ;gexp - (default #f)) - (login-pause? mingetty-login-pause? ;Boolean - (default #f))) + (mingetty mingetty-configuration-mingetty ; + (default mingetty)) + (tty mingetty-configuration-tty) ;string + (auto-login mingetty-auto-login ;string | #f + (default #f)) + (login-program mingetty-login-program ;gexp + (default #f)) + (login-pause? mingetty-login-pause? ;Boolean + (default #f)) + (clear-on-logout? mingetty-clear-on-logout? ;Boolean + (default #t))) =20 (define mingetty-shepherd-service (match-lambda (($ mingetty tty auto-login login-program - login-pause?) + login-pause? clear-on-logout?) (list (shepherd-service (documentation "Run mingetty on an tty.") @@ -1050,7 +1052,6 @@ the tty to run, among other things." =20 (start #~(make-forkexec-constructor (list #$(file-append mingetty "/sbin/mingetty") - "--noclear" =20 ;; Avoiding 'vhangup' allows us to avoid 'setfont' ;; errors down the path where various ioctls get @@ -1058,6 +1059,9 @@ the tty to run, among other things." ;; in Linux. "--nohangup" #$tty =20 + #$@(if clear-on-logout? + #~() + #~("--noclear")) #$@(if auto-login #~("--autologin" #$auto-login) #~()) --=20 2.28.0 --=-=-=--