system: Support activation service for the Hurd.
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>
Sun, 3 May 2020 14:32:09 +0000 (16:32 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 8 Jun 2020 12:12:20 +0000 (14:12 +0200)
* gnu/build/activation.scm (boot-time-system): Use "command-line" for the
Hurd.
* gnu/system.scm (hurd-default-essential-services): Add %boot-service and
%activation-service.

gnu/build/activation.scm
gnu/system.scm

index 30f5e87..b915e6b 100644 (file)
@@ -320,7 +320,9 @@ improvement."
 
 (define (boot-time-system)
   "Return the '--system' argument passed on the kernel command line."
-  (find-long-option "--system" (linux-command-line)))
+  (find-long-option "--system" (if (string-contains %host-type "linux-gnu")
+                                   linux-command-line
+                                   (command-line))))
 
 (define* (activate-current-system
           #:optional (system (or (getenv "GUIX_NEW_SYSTEM")
index a37c5ba..4c23178 100644 (file)
@@ -601,6 +601,8 @@ bookkeeping."
 
 (define (hurd-default-essential-services os)
   (list (service system-service-type '())
+        %boot-service
+        %activation-service
         (service profile-service-type '())))
 
 (define* (operating-system-services os)