summaryrefslogtreecommitdiff
path: root/executor/executor.8
blob: 3ca6f2247f10b17fab66cdd11cb41bd0a1a7b509 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.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