[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/42: services: hurd: Add dummy loopback.
From: |
guix-commits |
Subject: |
25/42: services: hurd: Add dummy loopback. |
Date: |
Sat, 25 Apr 2020 13:45:06 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 075e414e85e8f1adb4cf42593341d4b9f2c1316c
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.
;;;
- 12/42: gnu: hurd: Use default Qemu guest ip: 10.0.2.15., (continued)
- 12/42: gnu: hurd: Use default Qemu guest ip: 10.0.2.15., guix-commits, 2020/04/25
- 20/42: services: Add hurd-console-service-type., guix-commits, 2020/04/25
- 26/42: services: Add openssh-service as a Hurd service., guix-commits, 2020/04/25
- 22/42: services: Add hurd-user-services-service-type., guix-commits, 2020/04/25
- 23/42: services: Add guix-daemon-service as a Hurd service., guix-commits, 2020/04/25
- 29/42: system: hurd: Add openssh service., guix-commits, 2020/04/25
- 30/42: system: hurd: Create system profile for guix development., guix-commits, 2020/04/25
- 28/42: system: gnu: Populate "/etc" from "/boot/activation"., guix-commits, 2020/04/25
- 31/42: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile., guix-commits, 2020/04/25
- 07/42: gnu: guix: Cross-build fix: override compressors., guix-commits, 2020/04/25
- 25/42: services: hurd: Add dummy loopback.,
guix-commits <=
- 19/42: services: Add hurd., guix-commits, 2020/04/25
- 27/42: system: hurd: Add the Shepherd., guix-commits, 2020/04/25
- 33/42: system: hurd: Add the guix service., guix-commits, 2020/04/25
- 41/42: system: hurd: Add hurd-grub-minimal-bootloader., guix-commits, 2020/04/25
- 16/42: gnu: Add libtirpc/hurd., guix-commits, 2020/04/25
- 34/42: services: hurd: Move hurd-etc-sevcices., guix-commits, 2020/04/25
- 36/42: services: hurd: Move hurd-default-essential-services., guix-commits, 2020/04/25
- 39/42: services: hurd: Use cons as extend method., guix-commits, 2020/04/25
- 38/42: services: hurd: Use hurd-file-systems-service., guix-commits, 2020/04/25
- 32/42: system: hurd: Add guix., guix-commits, 2020/04/25