guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

25/27: system: hurd: Populate services.


From: guix-commits
Subject: 25/27: system: hurd: Populate services.
Date: Fri, 29 May 2020 04:43:38 -0400 (EDT)

janneke pushed a commit to branch wip-hurd-vm
in repository guix.

commit 063a7357bb2002b5d6b71a2ff89c7ce6a9840550
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Wed May 6 10:07:08 2020 +0200

    system: hurd: Populate services.
    
    * gnu/system/hurd.scm (%base-services/hurd): Add hurd-console-service,
    hurd-getty-services.  Also add sylog and loopback, needed for ...
    * gnu/system.scm (hurd-default-essential-services): ... add
    %shepherd-root-service with dependencies: %boot-service, 
%activation-service,
    user-processes, root-file-system-service, file-system-service,
    pam-root-service.
---
 gnu/system.scm      | 14 +++++++++++++-
 gnu/system/hurd.scm | 13 ++++++++++++-
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index 4d23f68..9c4c583 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -608,8 +608,20 @@ bookkeeping."
   (list (service system-service-type '())
         %boot-service
         %activation-service
+        %shepherd-root-service
+        (service user-processes-service-type)
+        (account-service (append (operating-system-accounts os)
+                                 (operating-system-groups os))
+                         (operating-system-skeletons os))
+        (root-file-system-service)
+        (service file-system-service-type '())
+        (service fstab-service-type
+                 (filter file-system-needed-for-boot?
+                         (operating-system-file-systems os)))
+        (pam-root-service (operating-system-pam-services os))
         (hurd-etc-service os)
-        (service profile-service-type '())))
+        (service profile-service-type
+                 (operating-system-packages os))))
 
 (define* (operating-system-services os)
   "Return all the services of OS, including \"essential\" services."
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index 472eca8..ac86876 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -57,7 +57,18 @@
         net-base inetutils less shepherd which))
 
 (define %base-services/hurd
-  '())
+  (list (service hurd-console-service-type
+                 (hurd-console-configuration (hurd hurd)))
+        (service hurd-getty-service-type (hurd-getty-configuration
+                                          (tty "tty1")))
+        (service hurd-getty-service-type (hurd-getty-configuration
+                                          (tty "tty2")))
+        (service static-networking-service-type
+                 (list (static-networking (interface "lo")
+                                          (ip "127.0.0.1")
+                                          (requirement '())
+                                          (provision '(loopback)))))
+        (syslog-service)))
 
 (define %hurd-default-operating-system
   (operating-system



reply via email to

[Prev in Thread] Current Thread [Next in Thread]