system: Define 'this-operating-system'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 29 Mar 2019 22:22:27 +0000 (23:22 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 30 Mar 2019 10:08:39 +0000 (11:08 +0100)
* gnu/system.scm (<operating-system>): Choose 'this-operating-system' as
the 'this' identifier.
[essential-services]: Adjust accordingly.

gnu/system.scm

index 9887d72..ad0c9e5 100644 (file)
@@ -66,6 +66,7 @@
   #:use-module (rnrs bytevectors)
   #:export (operating-system
             operating-system?
+            this-operating-system
 
             operating-system-bootloader
             operating-system-services
 (define-record-type* <operating-system> operating-system
   make-operating-system
   operating-system?
+  this-operating-system
+
   (kernel operating-system-kernel                 ; package
           (default linux-libre))
   (kernel-arguments operating-system-user-kernel-arguments
 
   (essential-services operating-system-essential-services ; list of services
                       (thunked)
-                      (default (essential-services this-record)))
+                      (default (essential-services this-operating-system)))
   (services operating-system-user-services        ; list of services
             (default %base-services))