expand DESIGN.md a bit
This commit is contained in:
parent
a5ae411c55
commit
545d5cc4c1
13
DESIGN.md
13
DESIGN.md
|
@ -345,7 +345,10 @@ The server code proceeds in stages:
|
||||||
commands.
|
commands.
|
||||||
2. Then it waits for all the model objects that feed into the curtin
|
2. Then it waits for all the model objects that feed into the curtin
|
||||||
config to be configured.
|
config to be configured.
|
||||||
3. It waits for confirmation.
|
3. It waits for confirmation. This can in theory be interrupted by a
|
||||||
|
change in the model objects which are considered 'interesting',
|
||||||
|
see below, so it is possible to transition from here to the
|
||||||
|
previous state.
|
||||||
4. It runs "curtin install" and waits for that to finish.
|
4. It runs "curtin install" and waits for that to finish.
|
||||||
5. It waits for the model objects that feed into the cloud-init config to be
|
5. It waits for the model objects that feed into the cloud-init config to be
|
||||||
configured.
|
configured.
|
||||||
|
@ -361,6 +364,14 @@ enum, so the client gets notified via long-polling `meta.status.GET()`
|
||||||
of progress. In addition, `ApplicationState.ERROR` indicates something
|
of progress. In addition, `ApplicationState.ERROR` indicates something
|
||||||
has gone wrong.
|
has gone wrong.
|
||||||
|
|
||||||
|
Originally subiquity was just the server installer and so the set of
|
||||||
|
models that have to be configured for each step was just static. But
|
||||||
|
subiquity can also install desktop systems and maybe one day Ubuntu
|
||||||
|
core, and different information is needed to fully configure each
|
||||||
|
different variant. This information is handled by the
|
||||||
|
`subiquity.models.subiquity.SubiquityModel.set_source_variant` method
|
||||||
|
and surrounding code.
|
||||||
|
|
||||||
### Error handling
|
### Error handling
|
||||||
|
|
||||||
As hard as it is to believe, things do go wrong during
|
As hard as it is to believe, things do go wrong during
|
||||||
|
|
Loading…
Reference in New Issue