Commit Graph

3111 Commits

Author SHA1 Message Date
Michael Hudson-Doyle f4ad0c1c69 replace some cryptic variable names 2020-04-07 21:51:11 +12:00
Michael Hudson-Doyle 85f7de110d complicate things to allow for overlapping subiquity events 2020-04-07 21:51:11 +12:00
Michael Hudson-Doyle af50f47277 do not leave user stranded if confirmation appears over progress view and they say no 2020-04-07 21:51:11 +12:00
Michael Hudson-Doyle 5f21076d7f show progress when apply_autoinstall_config takes >0.1s
If, when the overall installer is interactive but a particular
controller is not and applying the config for that installer takes more
than 0.1 seconds, show the progress view until it completes (but ensure
that the progress view is on screen for at least a whole second if it is
shown at all).

Block all input during that (up to) 0.1s wait.

Send events from non-interacttive controllers to the progress view.
2020-04-07 21:51:11 +12:00
Michael Hudson-Doyle b70ad315f8 show error report over first interactive screen 2020-04-07 21:51:11 +12:00
Michael Hudson-Doyle 5109588d6f move a bit of logic into ProgressView 2020-04-07 21:51:11 +12:00
Michael Hudson-Doyle 9a11e90719 attach a controller to most contexts 2020-04-07 21:51:11 +12:00
Michael Hudson-Doyle 246570314a pass the context object to report_start_event / report_finish_event 2020-04-07 21:51:11 +12:00
Michael Hudson-Doyle c20264bcd7
Merge pull request #688 from mwhudson/fix-travis
fix travis
2020-04-07 21:48:56 +12:00
Michael Hudson-Doyle be146972da fix travis 2020-04-07 21:37:42 +12:00
Dimitri John Ledkov b9999ddd47
Merge pull request #687 from mwhudson/autoinstall-check-argh
fix tty check for autoinstalls
2020-04-07 09:37:21 +01:00
Michael Hudson-Doyle b0302484d2 fix tty check for autoinstalls 2020-04-07 20:34:38 +12:00
Dimitri John Ledkov 95c20226fd
Merge pull request #686 from mwhudson/no-netplan-crash
if netplan apply fails show an error rather than crashing the ui
2020-04-07 09:11:25 +01:00
Dimitri John Ledkov 367e912cc0
Merge pull request #685 from mwhudson/copy-md5check-file
copy /run/casper-md5check.json to /var/log/installer
2020-04-07 09:04:52 +01:00
Michael Hudson-Doyle 692011d84e only write the file if it exists 2020-04-07 12:17:43 +12:00
Michael Hudson-Doyle 81b6f8a90a if netplan apply fails show an error rather than crashing the ui 2020-04-07 12:16:53 +12:00
Michael Hudson-Doyle 43ef6286ef copy /run/casper-md5check.json to /var/log/installer 2020-04-07 10:44:39 +12:00
Dimitri John Ledkov 7b4bcb9922 consoleconf: watch changes on install 2020-04-06 17:24:18 +01:00
Dimitri John Ledkov a5c106be0c releasing package subiquity version 20.03.3+git107gb7ae4d06 2020-04-06 17:14:36 +01:00
Dimitri John Ledkov b7ae4d0659 Update POTFILES.in 2020-04-06 16:55:52 +01:00
Dimitri John Ledkov c6fb745619 update translations 2020-04-06 16:46:23 +01:00
Dimitri John Ledkov 730db517b5
Merge pull request #683 from mwhudson/ssh-help
add a help menu item on how to connect over ssh
2020-04-06 16:08:48 +01:00
Michael Hudson-Doyle 00e33ae0e1 include ssh host key details in ssh help 2020-04-06 14:10:26 +12:00
Michael Hudson-Doyle 818696e2cb add a help menu item on how to connect over ssh 2020-04-06 13:32:56 +12:00
Michael Hudson-Doyle 160007d493
Merge pull request #682 from mwhudson/fix-ssh-key-import
i misunderstood what setting ssh_authorized_keys at the top-level in …
2020-04-03 14:50:32 +13:00
Michael Hudson-Doyle c2cee39e69
Merge pull request #681 from mwhudson/virtual-devices-arent-so-different
avoid deleting virtual devices on every network change
2020-04-03 14:48:10 +13:00
Michael Hudson-Doyle 6812cb48cd i misunderstood what setting ssh_authorized_keys at the top-level in cloud-init user-data did :( 2020-04-03 14:42:50 +13:00
Michael Hudson-Doyle 4101440814 a bigger hammer 2020-04-03 13:47:29 +13:00
Michael Hudson-Doyle 369f34e321
Merge pull request #671 from mwhudson/autoinstall-filesystem
implement extensions to curtin storage syntax as described in https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls/ConfigReference#storage
2020-04-03 13:39:40 +13:00
Michael Hudson-Doyle 58d220fd2c random fix 2020-04-03 13:37:06 +13:00
Michael Hudson-Doyle 960074db56 tests and fixes for richer partition sizes 2020-04-03 13:33:01 +13:00
Michael Hudson-Doyle 704ad8548b tests of partition %ages, failing for now 2020-04-03 13:33:01 +13:00
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