[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/48: services: hurd: Add dummy loopback.
From: |
guix-commits |
Subject: |
21/48: services: hurd: Add dummy loopback. |
Date: |
Sun, 19 Apr 2020 10:22:12 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit dc606624171bda4c0e3231ac76cac5f368404204
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Mon Apr 13 22:51:00 2020 +0200
services: hurd: Add dummy loopback.
* gnu/services/hurd.scm (hurd-loopback-shepherd-service,
hurd-loopback-service-type): New function.
(hurd-service->shepherd-service): Use them to support entry for dummy
loopback.
---
gnu/services/hurd.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/services/hurd.scm b/gnu/services/hurd.scm
index 53fd492..5b3fabd 100644
--- a/gnu/services/hurd.scm
+++ b/gnu/services/hurd.scm
@@ -29,6 +29,7 @@
#:use-module (ice-9 match)
#:export (hurd-console-configuration
hurd-console-service-type
+ hurd-loopback-service-type
hurd-service->shepherd-service
hurd-ttys-configuration
hurd-ttys-service-type
@@ -48,6 +49,7 @@
(($ <hurd-console-configuration>) (hurd-console-shepherd-service config))
(($ <hurd-ttys-configuration>) (hurd-ttys-shepherd-service config))
(($ <syslog-configuration>) (syslog-shepherd-service config))
+ (('loopback) (hurd-loopback-shepherd-service #f))
(('user-processes) (hurd-user-processes-shepherd-service #f))
(_ '()))))
@@ -145,6 +147,33 @@ Hurd.")))
;;;
+;;; Dummy hurd-loopback service, required for guix-daemon.
+;;;
+
+(define (hurd-loopback-shepherd-service _)
+ "Return the 'loopback' Shepherd service."
+
+ (list (shepherd-service
+ (documentation "Dummy for bootstrapping (gnu services) on the Hurd.")
+ (provision '(loopback))
+ (requirement '())
+ (start #~(const #t))
+ (stop #~(const #t))
+ (respawn? #f))))
+
+(define hurd-loopback-service-type
+ (service-type
+ (name 'loopback)
+ (extensions (list (service-extension shepherd-root-service-type
+ hurd-loopback-shepherd-service)))
+ (compose concatenate)
+ (extend append)
+ (default-value '(loopback)) ;canary for hurd-service->shepherd-service
+ (description "Dummy service to bootstrap (gnu services) on the
+Hurd.")))
+
+
+;;;
;;; Simple wrapper for <hurd>/libexec/runttys.
;;;
- 08/48: gnu: hurd: Fix references to /bin/w., (continued)
- 08/48: gnu: hurd: Fix references to /bin/w., guix-commits, 2020/04/19
- 11/48: gnu: Add dde-sources., guix-commits, 2020/04/19
- 13/48: gnu: hurd: Add NFS support., guix-commits, 2020/04/19
- 12/48: gnu: Add netdde., guix-commits, 2020/04/19
- 17/48: services: Add hurd-ttys-service-type., guix-commits, 2020/04/19
- 18/48: services: Add hurd-user-services-service-type., guix-commits, 2020/04/19
- 22/48: services: Add openssh-service as a Hurd service., guix-commits, 2020/04/19
- 15/48: services: Add hurd., guix-commits, 2020/04/19
- 14/48: gnu: Add libtirpc/hurd., guix-commits, 2020/04/19
- 28/48: system: hurd: Create system profile for guix development., guix-commits, 2020/04/19
- 21/48: services: hurd: Add dummy loopback.,
guix-commits <=
- 25/48: system: gnu: Populate "/etc" from "/boot/activation"., guix-commits, 2020/04/19
- 19/48: services: Add guix-daemon-service as a Hurd service., guix-commits, 2020/04/19
- 29/48: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile., guix-commits, 2020/04/19
- 30/48: guile: Disable web-server test on the Hurd., guix-commits, 2020/04/19
- 31/48: gnu: tar: Disable troublesome tests on the Hurd., guix-commits, 2020/04/19
- 32/48: gnu: tls: Remove datefudge and disable tests on the Hurd., guix-commits, 2020/04/19
- 20/48: services: hurd: Add dummy syslog., guix-commits, 2020/04/19
- 35/48: HACK gnu: python: Disable tests on the Hurd., guix-commits, 2020/04/19
- 36/48: system: hurd: Add guix., guix-commits, 2020/04/19
- 39/48: gnu: guix: Fix cross-compilation., guix-commits, 2020/04/19