summaryrefslogblamecommitdiff
path: root/executor/executor.8
blob: 3ca6f2247f10b17fab66cdd11cb41bd0a1a7b509 (plain) (tree)




















                                                                            








































                                                                               







                                                                    



























                                                            











                                      
.Dd May 15, 2020
.Dt HSCRIPT-EXECUTOR 8
.Os "Adélie Linux"
.Sh NAME
.Nm hscript-executor
.Nd install a Linux system based on a HorizonScript
.Sh SYNOPSIS
.Nm
.Sh DESCRIPTION
The
.Nm
utility installs a Linux system to /target on the current system, configured
as described in a given HorizonScript.
.Pp
It is assumed that
.Xr hscript-fetch 8
has been run before
.Nm ,
as this utility places the desired HorizonScript in the location where
.Nm
expects it to be.
.Ss Steps
Horizon divides an installation into
.Qq steps ,
which are a grouping of related installation processes.  The steps defined
in this version of Horizon are:
.Bl -tag -width Ds
.It validate
The
.Cm validate
step performs validation of the HorizonScript, ensuring that it can be
executed on the current system.
.It disk
The
.Cm disk
step performs disk initialisation and preparation, including any labeling,
partitioning, file system creation, and mounting.
.It pre-metadata
The
.Cm pre-metadata
step performs configuration of early system metadata that must be complete
before networking is set up.  This includes setting the hostname, setting up
APK repositories, and (in some cases) setting up initial firmware loads.
.It net
The
.Cm net
step performs all networking configuration.  This includes setting up the
network in the target system, and (if the
.Cm network
key in the HorizonScript is set to true) configuring the network on the
current host.
.It pkgdb
The
.Cm pkgdb
step performs initial APK configuration and then installs the desired packages
to the target environment.
.It post-metadata
The
.Cm post-metadata
step performs configuration of system metadata.  This includes setting the root
passphrase, the keymap, any user accounts requested, and the system timezone.
.El
.Sh FILES
.Bl -ohang -width "/etc/horizon/installfile" -offset indent -compact
.It Pa /etc/horizon/installfile
.Nm
reads
.Pa /etc/horizon/installfile
as the HorizonScript to use for configuring the target system.
.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
.Nm
.Sh DIAGNOSTICS
.Bl -diag
.It "%dateT%time log %location: %status: %message[: %extra]"
A message of type
.Cm %status
was logged while processing
.Cm %location .
The log message
.Cm %message
may be followed by additional information or hints in
.Cm %extra .
.It "%dateT%time step-start %step"
Denotes that the installation step
.Cm %step
is starting.  Steps are described in the
.Sy Steps
section.
.It "%dateT%time step-end %step"
Denotes that the installation step
.Cm %step
has finished successfully.  Steps are described in the
.Sy Steps
section.
.El
.Sh SEE ALSO
.Xr hscript 5 ,
.Xr hscript-fetch 8 ,
.Xr hscript-simulate 1 ,
.Xr hscript-validate 1 .
.Sh HISTORY
The
.Nm
command first appeared in Horizon 0.1.
.Sh AUTHORS
.An A. Wilcox
.Aq awilfox@adelielinux.org