Commit Graph

3429 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 2fd57f58f8 more tests, some fixes 2020-04-03 13:33:01 +13:00
Michael Hudson-Doyle 0e3482715c test size:largest 2020-04-03 13:33:01 +13:00
Michael Hudson-Doyle 3ede8002d7 add a single test, and a fix 2020-04-03 13:33:01 +13:00
Michael Hudson-Doyle f2e9e5407f handle grub settings too 2020-04-03 13:33:01 +13:00
Michael Hudson-Doyle f1827f0356 implement extensions to curtin storage syntax 2020-04-03 13:33:01 +13:00
Michael Hudson-Doyle 4d312348c8 add and user a couple of helpers 2020-04-03 13:33:01 +13:00
Michael Hudson-Doyle fa476d54cc treat virtual network devices a bit more like physical ones
in particular: have subiquitycore.netplan understand them. The goal of
all this is to make the recent change to not delete virtual interfaces
if their configuration has not changed actually work.
2020-04-03 10:12:42 +13:00
Dimitri John Ledkov c8f53e87aa
Merge pull request #680 from bboozzoo/bboozzoo/dont-assume-fd0-stdin
subiquitycore: do not assume that stdin is /proc/self/fd/0
2020-04-02 12:20:36 +01:00
Maciej Borzecki 9bcf507b7c subiquitycore: do not assume that stdin is /proc/self/fd/0
The KeyCodesFilter assumed that /proc/self/fd/0 is actual stdin and proceeded to
toy with that fd. This broke the recovery mode chooser where console-conf is fed
a list of recovery systems over stdin. The `sys.stdin` is already correctly
updated to use the real tty and that should be used elsewhere instead of
hardcoding the fd number.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-02 13:08:16 +02:00
Michael Hudson-Doyle f929f565fd
Merge pull request #679 from mwhudson/try-stage-efibootmgr
try to make efibootmgr an optional stage-package
2020-04-02 22:53:43 +13:00
Michael Hudson-Doyle c9448bba9d try to make efibootmgr an optional stage-package 2020-04-02 22:46:15 +13:00
Dimitri John Ledkov 140632c27f
Merge pull request #674 from mwhudson/autoinstall-user-data
support user-data section of autoinstall file
2020-04-02 10:12:49 +01:00
Dimitri John Ledkov 92dd7d045d
Merge pull request #678 from mwhudson/stage-efibootmgr
stage efibootmgr for now
2020-04-02 10:00:08 +01:00
Michael Hudson-Doyle 4212ee41e4 stage efibootmgr for now 2020-04-02 21:44:33 +13:00
Michael Hudson-Doyle b76310dbf1
Merge pull request #675 from mwhudson/lp-1865027
things to improve debugging launchpad bug 1865027
2020-04-02 20:56:40 +13:00
Michael Hudson-Doyle 14354818ea
Merge pull request #676 from bboozzoo/bboozzoo/unset-LANG
subiquity/controllers: fix failure when LANG is unset
2020-04-02 20:56:18 +13:00
Michael Hudson-Doyle 48d58d2632
Merge pull request #677 from mwhudson/refresh-race
obscure race: if no refresh available, only advance past refresh screen
2020-04-02 20:37:07 +13:00
Michael Hudson-Doyle bdc539a6c5 obscure race: if no refresh available, only advance past refresh screen
if the user has already moved on, we shouldn't advance!
2020-04-02 20:36:01 +13:00
Maciej Borzecki 60b455701b subiquity/controllers: fix failure when LANG is unset
Do not crash when LANG is unset.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-02 08:03:57 +02:00
Michael Hudson-Doyle b0e31383c3 Completely ignore mounts under /target
they are probably leftovers from a previous install attempt.
2020-04-02 16:46:08 +13:00
Michael Hudson-Doyle a03a336bd7 translate concurrent.futures.CancelledError to asyncio.CancelledError
apparently cancelling something that is running in a thread leads to a different
exception class being raised...
2020-04-02 12:15:06 +13:00
Michael Hudson-Doyle 74d8280752 unmount /target just before starting install
rather than at process startup.

otherwise doing something like ssh-ing to installer@ while an install is
running will unmount /target, with hilarious results.
2020-04-02 12:15:06 +13:00
Michael Hudson-Doyle 1be49e80ba make identity data optional if user-data is provided 2020-04-02 11:26:00 +13:00
Michael Hudson-Doyle 17a6d960c6 support user-data section of autoinstall file 2020-04-02 11:26:00 +13:00
Michael Hudson-Doyle 291e1950ba
Merge pull request #664 from mwhudson/autoinstall-packages
support packages, debconf-selections keys in autoinstall
2020-04-02 11:25:24 +13:00
Michael Hudson-Doyle 8269ffafea
Merge pull request #673 from mwhudson/test-directories
move newly added tests to tests directories
2020-04-02 11:21:28 +13:00
Michael Hudson-Doyle 467257ff9a hack for testing in lxd 2020-04-02 11:11:25 +13:00
Michael Hudson-Doyle 9a68ce91c1 fix not supplying snaps in autoinstall, oops 2020-04-02 10:47:47 +13:00
Michael Hudson-Doyle 22d84fb4cc fix some merge conflict resolution damage 2020-04-02 10:26:08 +13:00
Michael Hudson-Doyle 5d05511acf make debconf-selections handling a little more regular 2020-04-02 10:23:24 +13:00
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