Michael Hudson-Doyle
963cbaaafe
refactor how subiquity is exited after install
...
if we want to do things after install has completed (e.g.: run late
commands), we can't have the code that runs the install invoking
/sbin/reboot directly.
2019-12-20 13:54:34 +13:00
Michael Hudson-Doyle
f925c3fa2a
Merge pull request #622 from mwhudson/make_screen-method
...
make screen behaviour more configurable
2019-12-20 13:09:57 +13:00
Michael Hudson-Doyle
06866c39e1
Merge pull request #623 from mwhudson/guided-layouts-controller
...
move guided disk layout implementation to controller
2019-12-20 13:09:49 +13:00
Michael Hudson-Doyle
a40082a29b
Merge pull request #621 from mwhudson/controller-set-tweaks
...
tweak ControllerSet
2019-12-20 13:01:04 +13:00
Michael Hudson-Doyle
b18ae6d00c
move guided disk layout implementation to controller
2019-12-20 12:55:24 +13:00
Michael Hudson-Doyle
78d59de8c6
only call setraw if the screen is talking to a tty
2019-12-20 12:48:27 +13:00
Michael Hudson-Doyle
039b5313c4
move make_screen into a method
2019-12-20 12:47:37 +13:00
Michael Hudson-Doyle
ab6fdeb1b5
tweak ControllerSet
...
* add a way to load just one controller
* fetch the RepeatedController class from a projet specific location
neither used yet, but soon
2019-12-20 12:43:42 +13:00
Michael Hudson-Doyle
21b7556dc1
Merge pull request #620 from mwhudson/prioritize-asyncio-loop
...
use the asyncio loop object rather than the urwid loop almost everywhere
2019-12-20 12:20:44 +13:00
Michael Hudson-Doyle
cb52ab75a2
use the asyncio loop object rather than the urwid loop almost everywhere
2019-12-20 12:04:38 +13:00
Michael Hudson-Doyle
b1fb40507f
Merge pull request #617 from mwhudson/subiquity-controller
...
make all subiquity controllers used inherit from SubiquityController
2019-12-20 11:44:21 +13:00
Michael Hudson-Doyle
cfc38e1c1b
make all subiquity controllers used inherit from SubiquityController
...
There is going to be a chunk of subiquity specific functionality coming
for autoinstalls, this gives us somewhere to put it.
2019-12-20 11:41:12 +13:00
Michael Hudson-Doyle
df02e85cab
Merge pull request #619 from mwhudson/refresh-wait-answers
...
wait for snap update check to complete before interpreting answers
2019-12-20 11:40:15 +13:00
Michael Hudson-Doyle
0645cc1727
Merge pull request #618 from mwhudson/SingleInstanceTask.wait
...
add helper to avoid SingleInstanceTask clients caring about cancellation
2019-12-20 11:30:50 +13:00
Michael Hudson-Doyle
b547850791
wait for snap update check to complete before interpreting answers
2019-12-20 11:25:33 +13:00
Michael Hudson-Doyle
3d4d884941
use SingleInstanceTask.wait in block probing
2019-12-20 11:20:26 +13:00
Michael Hudson-Doyle
e33e65dd20
switch to SingleInstanceTask in mirror controller
2019-12-20 11:17:34 +13:00
Michael Hudson-Doyle
2b0ee84ccb
Use SingleInstanceTask.wait in refresh view
2019-12-20 11:04:40 +13:00
Michael Hudson-Doyle
570472315d
Add SingleInstanceTask.wait
...
this can be called without having to worry about the task being
cancelled out from under you
2019-12-20 11:00:46 +13:00
Michael Hudson-Doyle
ae9dd41e44
Merge pull request #614 from mwhudson/reporting
...
structured reporting
2019-12-20 10:57:54 +13:00
Michael Hudson-Doyle
903a8b66ec
feed curtin events into context system too
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
643e53a583
start reporting install progress events via context
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
95a36eff56
use context stuff for fetching the ssh keys
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
8fe1bffea1
use context stuff for the snaplist snapd requests
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
dacd77f2be
use context stuff for the refresh snapd requests
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
eb3851bc16
use context stuff for the geoip lookup
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
fac0432b24
use context stuff for the block probing
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
1d181a794b
use context stuff for the error controller
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
45478b68a4
add a way to change the default level of a context's children
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
a91dff2b14
add a way to log a dialog open/close, use it for network dialogs
2019-12-20 09:47:38 +13:00
Michael Hudson-Doyle
4be25fc78f
log applying network config via context
2019-12-20 09:47:36 +13:00
Michael Hudson-Doyle
1f1937b03f
report progress through screens via context
2019-12-20 09:46:26 +13:00
Michael Hudson-Doyle
fa39f10651
fix answers
2019-12-20 09:46:26 +13:00
Michael Hudson-Doyle
1277eaf74e
add a ReportingController for subiquity
...
this feeds events into curtin's reporting framework
2019-12-20 09:46:26 +13:00
Michael Hudson-Doyle
5961b68b7d
introduce a Context object for logging start/stop events
2019-12-20 09:46:26 +13:00
Michael Hudson-Doyle
e718a4391d
Merge pull request #616 from mwhudson/network-timeout-fix
...
fix case where NIC does not get DHCP address
2019-12-19 16:19:17 +13:00
Michael Hudson-Doyle
0c268f6c22
fix case where NIC does not get DHCP address
2019-12-19 16:06:56 +13:00
Michael Hudson-Doyle
b024f284c1
Merge pull request #615 from mwhudson/snaplist-skip-oops
...
missed a signal in #613
2019-12-18 11:29:51 +13:00
Michael Hudson-Doyle
8888bd932b
missed a signal in #613
2019-12-18 11:29:05 +13:00
Dimitri John Ledkov
904c0e3179
Merge pull request #613 from mwhudson/model-events
...
stop using urwid signals to coordinate installation
2019-12-17 02:11:32 +00:00
Michael Hudson-Doyle
ca1635a1f9
a bit of refactoring
2019-12-17 15:05:17 +13:00
Michael Hudson-Doyle
016b7a4d46
use asyncio.Event()s to indicate when config is done
...
stop using urwid signals to indicate to installprogress when
a particular piece of config is done and instead call .set() on
an Event that installprogress can wait on.
2019-12-17 14:55:20 +13:00
Michael Hudson-Doyle
2e59d11ad3
add subiquity-specific NetworkController
2019-12-17 14:50:56 +13:00
Michael Hudson-Doyle
997296ec18
Merge pull request #612 from mwhudson/curtin-master-for-now
...
move to current curtin master, including fix for installing kernels o…
2019-12-17 12:59:27 +13:00
Dimitri John Ledkov
dce0f10c10
Merge guided method & disk selection into one screen. ( #588 )
...
Merge guided method & disk selection into one screen.
2019-12-17 12:59:03 +13:00
Michael Hudson-Doyle
9e81562e1f
move to current curtin master, including fix for installing kernels on !amd64
2019-12-17 12:58:25 +13:00
Michael Hudson-Doyle
c7fcc3de67
Merge pull request #611 from mwhudson/mis-indent
...
indent a "raise" properly
2019-12-17 11:29:33 +13:00
Michael Hudson-Doyle
29c9f0878b
indent a "raise" properly
2019-12-17 11:28:42 +13:00
Dimitri John Ledkov
8f88daeb64
Upload subiquity snapshot to unbreak console-conf on core20.
2019-12-16 20:49:39 +00:00
Dimitri John Ledkov
ea8d463fbb
Merge pull request #605 from mwhudson/more-asyncio-snaplist
...
make the snaplist code more async
2019-12-16 19:40:44 +00:00