From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wPH+F0bT62IIaQEAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 16:10:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aMkbF0bT62IdzQAAG6o9tA (envelope-from ) for ; Thu, 04 Aug 2022 16:10:14 +0200 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 D8C923D6D1 for ; Thu, 4 Aug 2022 16:10:13 +0200 (CEST) Received: from localhost ([::1]:39476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJbYC-0004Fc-Tf for larch@yhetil.org; Thu, 04 Aug 2022 10:10:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJJJj-0003Da-62 for bug-guix@gnu.org; Wed, 03 Aug 2022 14:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJJJi-0005eP-I7 for bug-guix@gnu.org; Wed, 03 Aug 2022 14:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJJJi-00027c-E1 for bug-guix@gnu.org; Wed, 03 Aug 2022 14:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56958: auto login to tty only works for tty1 Resent-From: Joshua Branson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 03 Aug 2022 18:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56958 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 56958@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16595520718080 (code B ref -1); Wed, 03 Aug 2022 18:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Aug 2022 18:41:11 +0000 Received: from localhost ([127.0.0.1]:49948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJJIs-00026G-QM for submit@debbugs.gnu.org; Wed, 03 Aug 2022 14:41:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:59042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJJIo-000265-KS for submit@debbugs.gnu.org; Wed, 03 Aug 2022 14:41:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJJIo-0002Tj-De for bug-guix@gnu.org; Wed, 03 Aug 2022 14:41:06 -0400 Received: from mx1.dismail.de ([78.46.223.134]:47467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJJIk-0005XV-83 for bug-guix@gnu.org; Wed, 03 Aug 2022 14:41:06 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id f6f4fd43 for ; Wed, 3 Aug 2022 20:40:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=iNOxb9IqarWcPfKrQtJMR 9ce+8VCWHGawK/5M3FUpW0=; b=N/HffDaPW4+uHrw6RbPWuvbMPMjAQo1hAsA6p AstkUmR9Rz7W/SKa+SGqWCgh/x0orFap9Lertgn+DXV1Kp1X+aHzDjTaxdIR6O5+ B9nM/qAUMkxkRV9kNu+M4lx9Qw+UiioPVwA7Cbulv5/4oc9JPfvVMV803KE+Lg2f Q1Tssk6n4hsRtVKVCFaH2eM2163f3O1LDTdNeLyvXqZVYIEEtz5i1zeBVgFKJ1ZG RvGOS2kwhknMlC8+t0m67RpYFPCTZSQ/4BeU823GYFa80rhsL2JT4NHBslJz4cdR d+v42YmXqFojVQaoPTX37KuKNfHuWUT8qyIXohZgWShEGLYig== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id cbd79a04 for ; Wed, 3 Aug 2022 20:40:54 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 122cc111 for ; Wed, 3 Aug 2022 20:40:54 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id e1b966d4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 3 Aug 2022 20:40:53 +0200 (CEST) Date: Wed, 03 Aug 2022 14:40:50 -0400 Message-ID: <87pmhhxj9p.fsf@dismail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HDRS_MISSP=2.497, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 04 Aug 2022 10:09:23 -0400 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" Reply-to: Joshua Branson From: Joshua Branson via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659622214; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Xr8diZsw6NeJA0nfztHMZK9K76NOJ6kguJBIxeXGqFc=; b=o1QQZQhfxVsWmEYcATsDjYg0HHz1ad7rsS+EdoFctFaBN0WM0WsnV7vLFogt1okzFhpXz0 /xtXQbKDslfR2mpQ64g8SHxS86xhoXHKq8B2D2Pzn9S/xZ7gKQyjU/x7+nADzqz3OxIntt zL8giToGym2p0GOI3BsBIAfnspHMUw52yPwAia1PGbLZ+NZs5dsrH1zDEfkQhk2rpYdv59 cWdRBlM+DDmRStr8G77hk1CKtClbhBvdDozxbDUXkVIo8iwrxtzSySStBXgio+sXlcXKEv pkbEbv37XwmqAuwxGfLG5ZR5So6ee53QyKwoW7sNxr7K4jqKwIHenyZUfVfKmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659622214; a=rsa-sha256; cv=none; b=Jdr7338GV62iTs2VqUZiN2gGYMBdlB2AmAgqRuKkn2ZrGjl4gtmYC7gm9jY9DdesfV5gth 4ZE8JkUJZa4wMzKJc6Ifl1/QlDvZ4WYrqrFPazw5PrKIvJP2JuVZ7iRGEO5SLYlIWEngu2 OtGOldky8OnNX/2J9vQAHxCxOTlF/1Vf28jn1q2x7tZHkmz8Xe9/LGCOGSr/BevdVw5PnK +gayaYZJXoDZZHq5r1tqBGUKPg4Xwz1HiL1HrZvu+B956EePFJ7tABsSyULIkk6sbsnbb6 BUl0e2v75F1+D3y0x7YERPW9KCSQlV8ZxZbaBkeIHXcVV583y08Nk+xhcBrqEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b="N/HffDaP"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b="N/HffDaP"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D8C923D6D1 X-Spam-Score: -4.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7iOJnHFdRTsG Hey guix family! The cookbook decribes a method of auto login to tty. I have noticed that si= nce the latest shepherd upgrade (that's my best guess as to when the error occu= red), I have been unable to auto login to any tty as the cookbook describes. I ha= ve created a minimal guix system vm, to test the auto-login to tty. I have set= up ttys 2 - 4 to auto login my user joshua, but when I boot the vm only tty1 is auto logged in. The other tty's are not logged in. Is auto login supposed = to be restricted to one partiular tty? Thanks, Joshua P.S. Here is the test vm. #+BEGIN_SRC shell :dir ~/prog/gnu/guix/guix-config :results verbatim :expo= rts both cat bare-bones-with-autologin.scm #+END_SRC #+RESULTS: #+begin_example ;; Copyright =C2=A9 2021, 2022 Joshua Branson (use-modules (gnu)) (use-service-modules networking ssh) (use-package-modules ssh) (define (auto-login-to-tty config tty user) (if (string=3D? tty (mingetty-configuration-tty config)) (mingetty-configuration (inherit config) (auto-login user)) config)) ;; add an autologin to tty for a tty 2 - 4. ;; When you run this vm, only one will be auto-logged in. (define %my-base-services (modify-services %base-services (mingetty-service-type config =3D> (auto-login-to-tty config "tty1" "joshua")) (mingetty-service-type config =3D> (auto-login-to-tty config "tty2" "joshua")) (mingetty-service-type config =3D> (auto-login-to-tty config "tty3" "joshua")) (mingetty-service-type config =3D> (auto-login-to-tty config "tty4" "joshua")))) (operating-system (host-name "autologin") (timezone "America/Indianapolis") (locale "en_US.utf8") (bootloader (bootloader-configuration (bootloader grub-bootloader) (targets (list "/dev/sda")))) (file-systems (cons* (file-system (mount-point "/") (device "/dev/sda") (type "ext4")) %base-file-systems)) (users (cons* (user-account (name "joshua") (comment "Joshua Branson") (group "users") (home-directory "/home/joshua") (supplementary-groups '("kvm" "netdev" "wheel"))) %base-user-accounts)) (packages %base-packages) ;; Add services to the baseline: a DHCP client and ;; an SSH server. (services (cons* (service dhcp-client-service-type) (service openssh-service-type (openssh-configuration (openssh openssh-sans-x) (port-number 2222))) %my-base-services))) #+end_example To try it for yourself: #+BEGIN_SRC shell $(guix system vm bare-bones-with-autologin.scm) #+END_SRC Ctrl-Alt-G (make sure Ctrl and Alt are the left most keys) to grab focus inside the vm. Alt-right to switch to a different console. Ctrl-Alt-G to ungrab focus from the vm.