[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47/96: services: agetty: 'term-console' succeeds by default.
From: |
guix-commits |
Subject: |
47/96: services: agetty: 'term-console' succeeds by default. |
Date: |
Wed, 19 Apr 2023 21:41:12 -0400 (EDT) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 2886a59d182aab5c3525046e1aa84e2281f12426
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Apr 17 15:02:29 2023 +0200
services: agetty: 'term-console' succeeds by default.
Previously, on a typical setup without "console=ttyS0" or similar in
'kernel-arguments', the 'term-console' Shepherd service would always be
marked as failing to start. This is undesirable because it raises a
false alarm: the service is expected to do nothing in this case.
This patch instead marks it as succeeding and logs a message explaining
it's doing nothing.
* gnu/services/base.scm (agetty-shepherd-service): In 'start' method,
succeed when TTY is #f and print a message.
---
gnu/services/base.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index e5c6bf5335..dfc7571e55 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1178,7 +1178,13 @@ to use as the tty. This is primarily useful for
headless systems."
#$@(if term
#~(#$term)
#~())))
- (const #f)) ; never start.
+ #$(if tty
+ #~(const #f) ;always fail to start
+ #~(lambda _ ;succeed, but don't do anything
+ (format #t "~a: \
+no serial port console requested; doing nothing~%"
+ '#$(car provision))
+ 'idle)))
args)))))
(stop #~(make-kill-destructor))))))
- 23/96: gnu: qtbase: Disable unstable tst_qpauseanimation test., (continued)
- 23/96: gnu: qtbase: Disable unstable tst_qpauseanimation test., guix-commits, 2023/04/19
- 25/96: gnu: python-isort: Update to 5.12.0., guix-commits, 2023/04/19
- 40/96: gnu: python-scikit-build: Update to 0.17.1., guix-commits, 2023/04/19
- 41/96: gnu: python-fonttools: Update to 4.39.3., guix-commits, 2023/04/19
- 57/96: snippets: tempel: Simplify git-commit-mode detection., guix-commits, 2023/04/19
- 62/96: gnu: texlive-latex-acronym: Replace with texlive-acronym., guix-commits, 2023/04/19
- 64/96: gnu: texlive-latex-lastpage: Replace with texlive-lastpage., guix-commits, 2023/04/19
- 37/96: gnu: python-pytest-trio: Update to 0.8.0., guix-commits, 2023/04/19
- 44/96: gnu: python-anyio: Update to 3.6.2., guix-commits, 2023/04/19
- 46/96: environment: Really auto-load (guix scripts pack)., guix-commits, 2023/04/19
- 47/96: services: agetty: 'term-console' succeeds by default.,
guix-commits <=
- 48/96: substitute: Download nar from another server upon ETIMEDOUT., guix-commits, 2023/04/19
- 49/96: ssh: Silence remote daemon messages when sending store items., guix-commits, 2023/04/19
- 54/96: gnu: audacity: Update to 3.3.0-beta-1., guix-commits, 2023/04/19
- 58/96: gnu: r-with-tests: Update to 4.2.3., guix-commits, 2023/04/19
- 60/96: gnu: Add texlive-relsize., guix-commits, 2023/04/19
- 65/96: gnu: Add texlive-totpages., guix-commits, 2023/04/19
- 66/96: gnu: emacs-autothemer: Update to 0.2.17., guix-commits, 2023/04/19
- 75/96: gnu: kwin: Update skipped test list., guix-commits, 2023/04/19
- 78/96: gnu: r-rhdf5: Update to 2.42.1., guix-commits, 2023/04/19
- 84/96: gnu: r-dmrseq: Update to 1.18.1., guix-commits, 2023/04/19