mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
machine: Rename 'system' field.
* gnu/machine.scm (machine-system): Delete variable. (machine-operating-system): New variable. All callers changed. * doc/guix.texi (Invoking guix deploy): Use the 'machine-operating-system' accessor rather than 'machine-system'.
This commit is contained in:
parent
5bc751925d
commit
d97ce20400
3 changed files with 9 additions and 9 deletions
|
@ -25510,7 +25510,7 @@ evaluates to. As an example, @var{file} might contain a definition like this:
|
||||||
%base-services))))
|
%base-services))))
|
||||||
|
|
||||||
(list (machine
|
(list (machine
|
||||||
(system %system)
|
(operating-system %system)
|
||||||
(environment managed-host-environment-type)
|
(environment managed-host-environment-type)
|
||||||
(configuration (machine-ssh-configuration
|
(configuration (machine-ssh-configuration
|
||||||
(host-name "localhost")
|
(host-name "localhost")
|
||||||
|
@ -25551,7 +25551,7 @@ This is the data type representing a single machine in a heterogeneous Guix
|
||||||
deployment.
|
deployment.
|
||||||
|
|
||||||
@table @asis
|
@table @asis
|
||||||
@item @code{system}
|
@item @code{operating-system}
|
||||||
The object of the operating system configuration to deploy.
|
The object of the operating system configuration to deploy.
|
||||||
|
|
||||||
@item @code{environment}
|
@item @code{environment}
|
||||||
|
|
|
@ -34,7 +34,7 @@ (define-module (gnu machine)
|
||||||
machine?
|
machine?
|
||||||
this-machine
|
this-machine
|
||||||
|
|
||||||
machine-system
|
machine-operating-system
|
||||||
machine-environment
|
machine-environment
|
||||||
machine-configuration
|
machine-configuration
|
||||||
machine-display-name
|
machine-display-name
|
||||||
|
@ -85,14 +85,14 @@ (define-record-type* <machine> machine
|
||||||
make-machine
|
make-machine
|
||||||
machine?
|
machine?
|
||||||
this-machine
|
this-machine
|
||||||
(system machine-system) ; <operating-system>
|
(operating-system machine-operating-system) ; <operating-system>
|
||||||
(environment machine-environment) ; symbol
|
(environment machine-environment) ; symbol
|
||||||
(configuration machine-configuration ; configuration object
|
(configuration machine-configuration ; configuration object
|
||||||
(default #f))) ; specific to environment
|
(default #f))) ; specific to environment
|
||||||
|
|
||||||
(define (machine-display-name machine)
|
(define (machine-display-name machine)
|
||||||
"Return the host-name identifying MACHINE."
|
"Return the host-name identifying MACHINE."
|
||||||
(operating-system-host-name (machine-system machine)))
|
(operating-system-host-name (machine-operating-system machine)))
|
||||||
|
|
||||||
(define (machine-remote-eval machine exp)
|
(define (machine-remote-eval machine exp)
|
||||||
"Evaluate EXP, a gexp, on MACHINE. Ensure that all the elements EXP refers to
|
"Evaluate EXP, a gexp, on MACHINE. Ensure that all the elements EXP refers to
|
||||||
|
|
|
@ -166,7 +166,7 @@ (define (deploy-managed-host machine)
|
||||||
environment type of 'managed-host."
|
environment type of 'managed-host."
|
||||||
(maybe-raise-unsupported-configuration-error machine)
|
(maybe-raise-unsupported-configuration-error machine)
|
||||||
(mlet %store-monad ((boot-parameters (machine-boot-parameters machine)))
|
(mlet %store-monad ((boot-parameters (machine-boot-parameters machine)))
|
||||||
(let* ((os (machine-system machine))
|
(let* ((os (machine-operating-system machine))
|
||||||
(eval (cut machine-remote-eval machine <>))
|
(eval (cut machine-remote-eval machine <>))
|
||||||
(menu-entries (map boot-parameters->menu-entry boot-parameters))
|
(menu-entries (map boot-parameters->menu-entry boot-parameters))
|
||||||
(bootloader-configuration (operating-system-bootloader os))
|
(bootloader-configuration (operating-system-bootloader os))
|
||||||
|
|
Loading…
Reference in a new issue