GNU bug report logs -
#53763
[PATCH 0/3] Make console agetty wait for syslogd to start up
Previous Next
Reported by: dannym <at> scratchpost.org
Date: Thu, 3 Feb 2022 20:54:02 UTC
Severity: normal
Tags: patch
Done: Danny Milosavljevic <dannym <at> scratchpost.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53763 in the body.
You can then email your comments to 53763 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#53763
; Package
guix-patches
.
(Thu, 03 Feb 2022 20:54:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
dannym <at> scratchpost.org
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 03 Feb 2022 20:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Danny Milosavljevic <dannym <at> scratchpost.org>
This patchset makes the console agetty wait for syslogd to start up.
See also bug# 30464.
Danny Milosavljevic (3):
services: agetty: Add shepherd-requirement.
services: %base-services: Adapt agetty-service-type to depend on
syslogd.
agetty-shepherd-service: Rename console agetty to "term-console" for
clarity.
doc/guix.texi | 4 ++++
gnu/services/base.scm | 15 ++++++++++-----
2 files changed, 14 insertions(+), 5 deletions(-)
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53763
; Package
guix-patches
.
(Thu, 03 Feb 2022 20:56:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 53763 <at> debbugs.gnu.org (full text, mbox):
From: Danny Milosavljevic <dannym <at> scratchpost.org>
Fixes <https://issues.guix.gnu.org/30464>.
* gnu/services/base.scm (%base-services): Reorder syslog-service for clarity.
[shepherd-requirement]: New field.
---
gnu/services/base.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index d6f584abdb..028426c3f8 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -2787,10 +2787,12 @@ (define %base-services
(cons tty %default-console-font))
'("tty1" "tty2" "tty3" "tty4" "tty5" "tty6")))
+ (syslog-service)
(service agetty-service-type (agetty-configuration
(extra-options '("-L")) ; no carrier detect
(term "vt100")
- (tty #f))) ; automatic
+ (tty #f) ; automatic
+ (shepherd-requirement '(syslogd))))
(service mingetty-service-type (mingetty-configuration
(tty "tty1")))
@@ -2807,7 +2809,6 @@ (define %base-services
(service static-networking-service-type
(list %loopback-static-networking))
- (syslog-service)
(service urandom-seed-service-type)
(service guix-service-type)
(service nscd-service-type)
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53763
; Package
guix-patches
.
(Thu, 03 Feb 2022 20:56:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 53763 <at> debbugs.gnu.org (full text, mbox):
From: Danny Milosavljevic <dannym <at> scratchpost.org>
* gnu/services/base.scm (agetty-shepherd-service)[provision]: Rename console
agetty to "term-console".
---
gnu/services/base.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 028426c3f8..12a3ef2e93 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -931,7 +931,7 @@ (define agetty-shepherd-service
(list
(shepherd-service
(documentation "Run agetty on a tty.")
- (provision (list (symbol-append 'term- (string->symbol (or tty "auto")))))
+ (provision (list (symbol-append 'term- (string->symbol (or tty "console")))))
;; Since the login prompt shows the host name, wait for the 'host-name'
;; service to be done. Also wait for udev essentially so that the tty
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53763
; Package
guix-patches
.
(Thu, 03 Feb 2022 20:56:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 53763 <at> debbugs.gnu.org (full text, mbox):
From: Danny Milosavljevic <dannym <at> scratchpost.org>
* gnu/services/base.scm (<agetty-configuration>): Add shepherd-requirement.
* doc/guix.texi (agetty-configuration): Document it.
---
doc/guix.texi | 4 ++++
gnu/services/base.scm | 8 ++++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index aaa7cbb66f..68c4c4086a 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -16634,6 +16634,10 @@ This option accepts, as an integer, the nice value with which to run the
This option provides an ``escape hatch'' for the user to provide arbitrary
command-line arguments to @command{agetty} as a list of strings.
+@item @code{shepherd-requirement} (default: @code{'()})
+The option can be used to provides extra shepherd requirements (for example
+@code{'syslogd}) to the respective @code{'term-}* shepherd service.
+
@end table
@end deftp
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index fbd01e84d6..d6f584abdb 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -876,6 +876,8 @@ (define-record-type* <agetty-configuration>
;; "Escape hatch" for passing arbitrary command-line arguments.
(extra-options agetty-extra-options ;list of strings
(default '()))
+ (shepherd-requirement agetty-shepherd-requirement ;list of SHEPHERD requirements
+ (default '()))
;;; XXX Unimplemented for now!
;;; (issue-file agetty-issue-file ;file-like
;;; (default #f))
@@ -924,7 +926,8 @@ (define agetty-shepherd-service
host no-issue? init-string no-clear? local-line extract-baud?
skip-login? no-newline? login-options chroot hangup? keep-baud? timeout
detect-case? wait-cr? no-hints? no-hostname? long-hostname?
- erase-characters kill-characters chdir delay nice extra-options)
+ erase-characters kill-characters chdir delay nice extra-options
+ shepherd-requirement)
(list
(shepherd-service
(documentation "Run agetty on a tty.")
@@ -934,7 +937,8 @@ (define agetty-shepherd-service
;; service to be done. Also wait for udev essentially so that the tty
;; text is not lost in the middle of kernel messages (see also
;; mingetty-shepherd-service).
- (requirement '(user-processes host-name udev))
+ (requirement (cons* 'user-processes 'host-name 'udev
+ shepherd-requirement))
(modules '((ice-9 match) (gnu build linux-boot)))
(start
--
2.34.0
Reply sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
You have taken responsibility.
(Fri, 25 Feb 2022 16:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
dannym <at> scratchpost.org
:
bug acknowledged by developer.
(Fri, 25 Feb 2022 16:18:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 53763-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Pushed agetty changes as commits ed17082d94bdcdb67713e95d181061d179299aad, fcb6cab62149fd46d9fe496b91cc019a43774a43, 07c3a439555113bdd0bd416265221063d263f44c.
[Message part 2 (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 26 Mar 2022 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.