system: Define 'this-operating-system'.
* gnu/system.scm (<operating-system>): Choose 'this-operating-system' as the 'this' identifier. [essential-services]: Adjust accordingly.
This commit is contained in:
parent
adb6462c4c
commit
d8bead6c5d
|
@ -66,6 +66,7 @@
|
||||||
#:use-module (rnrs bytevectors)
|
#:use-module (rnrs bytevectors)
|
||||||
#:export (operating-system
|
#:export (operating-system
|
||||||
operating-system?
|
operating-system?
|
||||||
|
this-operating-system
|
||||||
|
|
||||||
operating-system-bootloader
|
operating-system-bootloader
|
||||||
operating-system-services
|
operating-system-services
|
||||||
|
@ -152,6 +153,8 @@
|
||||||
(define-record-type* <operating-system> operating-system
|
(define-record-type* <operating-system> operating-system
|
||||||
make-operating-system
|
make-operating-system
|
||||||
operating-system?
|
operating-system?
|
||||||
|
this-operating-system
|
||||||
|
|
||||||
(kernel operating-system-kernel ; package
|
(kernel operating-system-kernel ; package
|
||||||
(default linux-libre))
|
(default linux-libre))
|
||||||
(kernel-arguments operating-system-user-kernel-arguments
|
(kernel-arguments operating-system-user-kernel-arguments
|
||||||
|
@ -204,7 +207,7 @@
|
||||||
|
|
||||||
(essential-services operating-system-essential-services ; list of services
|
(essential-services operating-system-essential-services ; list of services
|
||||||
(thunked)
|
(thunked)
|
||||||
(default (essential-services this-record)))
|
(default (essential-services this-operating-system)))
|
||||||
(services operating-system-user-services ; list of services
|
(services operating-system-user-services ; list of services
|
||||||
(default %base-services))
|
(default %base-services))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue