Michael Hudson-Doyle
c1c33dee03
add a simple integration test for autoinstall
2020-04-02 10:22:08 +13:00
Michael Hudson-Doyle
7da090d9b9
bonus: make fake http requests respect scale_factor
...
includes an answers-only race fix
2020-04-02 10:22:08 +13:00
Michael Hudson-Doyle
c1855fe6d1
support packages, debconf-selections keys in autoinstall
2020-04-02 10:22:05 +13:00
Michael Hudson-Doyle
fac202d123
move newly added tests to tests directories
2020-04-02 10:18:07 +13:00
Dimitri John Ledkov
323780e642
Merge pull request #668 from mwhudson/autoinstall-once
...
only run autoinstall once
2020-04-01 22:16:09 +01:00
Dimitri John Ledkov
6a091fcc44
Merge pull request #665 from mwhudson/cmdlist-checking
...
tweak autoinstall command lists
2020-04-01 22:13:10 +01:00
Dimitri John Ledkov
5126417397
Merge pull request #661 from mwhudson/autoinstall-confirmation
...
be a bit less cavalier about running the install in autoinstall mode
2020-04-01 22:11:33 +01:00
Dimitri John Ledkov
78ada471c8
Merge pull request #669 from mwhudson/apport-breadcrumbs
...
put a better version number in the log file
2020-04-01 22:10:10 +01:00
Dimitri John Ledkov
590b4b8f23
Merge pull request #655 from bboozzoo/bboozzoo/uc20-recovery-chooser
...
console_conf: implement UC20 recovery chooser
2020-04-01 22:05:30 +01:00
Dimitri John Ledkov
c2aa72a9ee
Merge pull request #672 from xnox/consoleconf-focus-identity
...
consoleconf: focus on entry field in identy.
2020-04-01 21:54:00 +01:00
Dimitri John Ledkov
653434168c
Merge pull request #670 from mwhudson/no-cloud-init-networking
...
write netplan directly to the target
2020-04-01 18:22:33 +01:00
Maciej Borzecki
0b58dd598b
console_conf/controllers: add tests for recovery chooser
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:17:20 +02:00
Maciej Borzecki
b0ea2e1be7
console_conf/controllers/chooser: show current system actions first
...
When we know which system is current, show its actions first. Optionally allow
opening the list of other systems.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:17:20 +02:00
Maciej Borzecki
95b65d1caf
console_conf/ui/views: add screen with actions of the current system
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:17:20 +02:00
Maciej Borzecki
6ae155faf7
console_conf/ui/views: sort recovery systems, indicate which is the current one
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:00:34 +02:00
Maciej Borzecki
d7e03cd5a8
console_conf/models: identify the current system
...
When creating a recovery systems model, find out which of the systems is
current.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 15:58:34 +02:00
Dimitri John Ledkov
dffed63df5
consoleconf: focus on entry field in identy.
2020-04-01 14:32:55 +01:00
Michael Hudson-Doyle
cab565304a
write netplan directly to the target
...
rather than via curtin and then cloud-init
2020-04-01 19:37:02 +13:00
Michael Hudson-Doyle
98e7cc400d
put a better version number in the log file
2020-04-01 15:45:44 +13:00
Maciej Borzecki
93ac6b94a3
Merge remote-tracking branch 'upstream/master' into bboozzoo/uc20-recovery-chooser
2020-03-31 17:14:28 +02:00
Michael Hudson-Doyle
2ae75954f8
Merge pull request #666 from mwhudson/snaplist-schema
...
fix snaplist schema
2020-03-31 23:15:07 +13:00
Michael Hudson-Doyle
57080dac19
Merge pull request #667 from mwhudson/autoinstall-network
...
update NetworkModel.has_network when non-interactive
2020-03-31 23:14:44 +13:00
Michael Hudson-Doyle
8bf71d1d2c
use last console= arg, not first
2020-03-31 23:02:57 +13:00
Michael Hudson-Doyle
26ea8784fd
make translateable
2020-03-31 23:02:57 +13:00
Michael Hudson-Doyle
7b76e37ebd
only run early commands in "primary" terminal
2020-03-31 23:02:38 +13:00
Michael Hudson-Doyle
ceb0b017a4
show the initial screen if any screens are interactive
...
the idea here is to stop multiple subiquitys from trampling on each other
2020-03-31 23:02:38 +13:00
Michael Hudson-Doyle
1dab065c1d
only run a non-interactive install on the "primary" console
2020-03-31 23:02:38 +13:00
Michael Hudson-Doyle
2d59dc05bf
tweak command lists
...
allow commands to be lists or strings
consider errors to be failures (except in error-commands)
2020-03-31 23:02:38 +13:00
Michael Hudson-Doyle
3c6ce8fc6a
add some more hints
2020-03-31 23:02:18 +13:00
Michael Hudson-Doyle
e59ad99534
make translateable
2020-03-31 22:59:58 +13:00
Michael Hudson-Doyle
657bbe25dc
split kernel command line with shlex.split
2020-03-31 22:58:22 +13:00
Michael Hudson-Doyle
07858b5200
skip asking in non-interactive mode if autoinstall on kernel command line
2020-03-31 22:58:07 +13:00
Michael Hudson-Doyle
1f86c05ed5
ask directly for confirmation in non-interactive mode
2020-03-31 22:58:07 +13:00
Michael Hudson-Doyle
be4797e81a
have the app store the kernel command line
2020-03-31 22:58:07 +13:00
Michael Hudson-Doyle
abc8f1dfb2
decouple install confirmation from filesystem view
...
because, in a partially interactive install, we might not show the
filesystem view at all, but should still ask for confirmation before
starting curtin
2020-03-31 22:58:05 +13:00
Michael Hudson-Doyle
532ea542d9
fix snaplist schema
...
I wrote something in the schema validation branch but then changed it in
another branch in parallel.
2020-03-31 22:43:37 +13:00
Michael Hudson-Doyle
03661dabec
tweak autoinstall command lists
...
allow commands to be lists or strings
consider errors to be failures (except in error-commands)
2020-03-31 22:42:24 +13:00
Dimitri John Ledkov
91a79037a9
Merge pull request #662 from mwhudson/autoinstall-network
...
apply network autoinstall config
2020-03-31 09:35:22 +01:00
Dimitri John Ledkov
e416dd39f0
Merge pull request #663 from mwhudson/autoinstall-snaps
...
handle the 'snaps' section of the autoinstall file
2020-03-31 09:32:53 +01:00
Dimitri John Ledkov
d69242b2ab
Merge pull request #660 from mwhudson/autoinstall-validation
...
validate autoinstall data against a schema
2020-03-31 09:15:15 +01:00
Michael Hudson-Doyle
75ee48be24
update NetworkModel.has_network when non-interactive
2020-03-31 19:47:04 +13:00
Michael Hudson-Doyle
a15858d934
handle the 'snaps' section of the autoinstall file
...
went through a few versions of this locally, this one is pleasingly
small in delta.
2020-03-31 17:09:47 +13:00
Michael Hudson-Doyle
d717375d9c
apply network autoinstall config
2020-03-31 15:58:18 +13:00
Michael Hudson-Doyle
3b76c4dc4a
lint
2020-03-30 11:07:26 +13:00
Michael Hudson-Doyle
170f44663e
actually validate version field, reduce indentation a bit
2020-03-30 11:05:51 +13:00
Michael Hudson-Doyle
32e79826ad
do data loading / validation in a context
2020-03-30 10:35:45 +13:00
Michael Hudson-Doyle
32817ac410
add an invalid autoinstall file
2020-03-30 10:29:01 +13:00
Michael Hudson-Doyle
07e985bbeb
more paranoia
2020-03-30 10:27:54 +13:00
Michael Hudson-Doyle
19bee4e8b6
tweak behaviour on failure slightly
2020-03-30 10:26:18 +13:00
Michael Hudson-Doyle
b1ab79989d
fixity
2020-03-30 10:17:26 +13:00