Commit Graph

2845 Commits

Author SHA1 Message Date
Michael Hudson-Doyle f549883f80 tweak some log levels 2019-12-12 21:57:20 +13:00
Michael Hudson-Doyle d08cce4970 create an INFO level log file too, unconditionally include it in error reports 2019-12-12 21:49:44 +13:00
Michael Hudson-Doyle 7a447c7e38 record a couple of more things for error reports 2019-12-12 21:46:48 +13:00
Michael Hudson-Doyle 2d2c4e740a update DESIGN.md 2019-12-12 15:48:11 +13:00
Michael Hudson-Doyle c7797cd5dc slightly cuter way of handling auto rebooting 2019-12-12 15:46:34 +13:00
Michael Hudson-Doyle 00ab28aa78 fix handling of failed installations 2019-12-12 15:44:34 +13:00
Michael Hudson-Doyle 193243a498 refactor a little 2019-12-12 15:43:37 +13:00
Michael Hudson-Doyle 3d80f46225 asyncioify the installation 2019-12-12 15:19:22 +13:00
Michael Hudson-Doyle 6157306af7
Merge pull request #582 from xnox/snaplist-checkboxes
Switch snaplist checkbox from () to []
2019-12-12 11:13:53 +13:00
Michael Hudson-Doyle a6235131c2
Merge pull request #581 from mwhudson/controller-set
refactor how controllers are stored
2019-12-12 11:12:58 +13:00
Michael Hudson-Doyle ceb8296653
Merge pull request #590 from mwhudson/update-install_deps
have "make install_deps" install some recently added deps
2019-12-12 10:39:33 +13:00
Michael Hudson-Doyle 297d7c2060 add Application.select_screen
SubiquityUI will want to override this for autoinstally things
2019-12-12 10:38:04 +13:00
Michael Hudson-Doyle fb2f322544 tidy up next/prev_screen 2019-12-12 10:38:04 +13:00
Michael Hudson-Doyle 64378cdb95 refactor how controllers are stored a bit 2019-12-12 10:38:03 +13:00
Michael Hudson-Doyle 9322184af6 have "make install_deps" install some recently added deps 2019-12-12 10:26:57 +13:00
Michael Hudson-Doyle 9e0c0bf106
Merge pull request #589 from mwhudson/bump-probert
bump probert to get fix for device deletion crash
2019-12-12 09:34:13 +13:00
Michael Hudson-Doyle ff53d86bcc bump probert to get fix for device deletion crash 2019-12-12 09:21:30 +13:00
Michael Hudson-Doyle b3c013907b
Merge pull request #586 from mwhudson/restart-after-update
remove last-screen file before restarting subiquity
2019-12-12 09:19:54 +13:00
Michael Hudson-Doyle ecb49aa662
Merge pull request #587 from mwhudson/urwid-bugfix
get a fix from upstream urwid
2019-12-12 09:19:40 +13:00
Michael Hudson-Doyle 411a78ccb3 steal the fix for https://github.com/urwid/urwid/issues/235
the symptom of the bug fixed is that exceptions that crash the process
do not get reported sensibly.
2019-12-11 23:21:11 +13:00
Michael Hudson-Doyle 932f703c7a remove last-screen file before restarting subiquity
this fixes a crash loop when the users updates the subiquity snap
then hits an install failure and selects restart
2019-12-11 23:17:16 +13:00
Michael Hudson-Doyle f8a4b191ac
Merge pull request #579 from mwhudson/asyncio
switch to AsyncioEventLoop and start using asyncio APIs
2019-12-11 15:02:36 +13:00
Michael Hudson-Doyle cac9cba8ec asyncio.create_subprocess_exec does not support check=True 2019-12-11 15:02:18 +13:00
Michael Hudson-Doyle 7b2ee8a1a0 python 3.6 (i.e. bionic) compat 2019-12-11 15:02:18 +13:00
Michael Hudson-Doyle a3b9ba00ba use schedule_task in KeyboardController 2019-12-11 15:02:18 +13:00
Michael Hudson-Doyle e1531eaa6a update DESIGN.md 2019-12-11 15:02:13 +13:00
Michael Hudson-Doyle 67be814dc3 make a helpful async wrapper around snapd 2019-12-11 14:42:04 +13:00
Michael Hudson-Doyle 3ba3b04e09 make async helpers more global 2019-12-11 14:41:41 +13:00
Michael Hudson-Doyle 4bcb275801 convert snaplist controller to asyncio apis 2019-12-11 14:41:18 +13:00
Michael Hudson-Doyle 1aeb1308ec convert refresh controller to asyncio apis 2019-12-11 14:40:54 +13:00
Michael Hudson-Doyle 372ceed689 some helpers 2019-12-11 14:40:31 +13:00
Michael Hudson-Doyle 6d514de5f8 use asyncio apis to load error reports at startup 2019-12-11 14:40:09 +13:00
Michael Hudson-Doyle f805a9d9dd add a convenience wrapper 2019-12-11 14:39:48 +13:00
Michael Hudson-Doyle 864e09cc99 use asyncio event loop and a little asyncio api 2019-12-11 14:39:25 +13:00
Michael Hudson-Doyle d6178d9095
Merge pull request #583 from mwhudson/error-report-ui-tweaks
small tweaks to error reporting ui
2019-12-10 11:19:38 +13:00
Michael Hudson-Doyle ed07cd9b4c small tweaks to error reporting ui
* do not present other options while a report is uploading
* clarify what "try again" means when presenting a ui crash
2019-12-10 11:01:38 +13:00
Dimitri John Ledkov 8b08dd5001 Switch snaplist checkbox from () to []
In urwid design language () are radio buttons, and [] are checkboxes.
2019-12-06 18:33:18 +00:00
Michael Hudson-Doyle 68173131f3
Merge pull request #580 from mwhudson/curtin-master-for-now
use curtin master as of today
2019-12-06 09:33:31 +13:00
Michael Hudson-Doyle 9c0b215b31 use curtin master as of today 2019-12-06 09:32:52 +13:00
Michael Hudson-Doyle 4ce4e8b48f
Merge pull request #577 from mwhudson/error-report-send-to-daisy
enable sending reports to daisy
2019-12-06 09:26:21 +13:00
Michael Hudson-Doyle b5ca91e7d6 support cancelling the upload 2019-11-21 14:56:31 +13:00
Michael Hudson-Doyle 3ce74d146e dig a traceback out of a curtin install failure if possible 2019-11-21 14:56:08 +13:00
Michael Hudson-Doyle 9a3c524e68 submit the last ~2k of the curtin log to daisy 2019-11-21 14:55:46 +13:00
Michael Hudson-Doyle 683d1932ac have replayed curtin runs create a log file too 2019-11-21 14:55:23 +13:00
Michael Hudson-Doyle 0f1f128dc8 ui for sending error reports to daisy 2019-11-21 14:55:01 +13:00
Michael Hudson-Doyle ae033101e6 code for uploading to daisy 2019-11-21 14:54:35 +13:00
Michael Hudson-Doyle e303fab383
Merge pull request #578 from mwhudson/curtin-events-fail
have dry-run install failures replay events from a real failure
2019-11-21 11:39:14 +13:00
Michael Hudson-Doyle e8a9cdf4f8 have dry-run install failures replay events from a real failure 2019-11-21 11:25:43 +13:00
Dimitri John Ledkov 5a72d361a7
Merge pull request #576 from mwhudson/unmount-before-probing
if /target exists, run curtin umount /target before first disk probe
2019-11-18 03:40:25 -08:00
Michael Hudson-Doyle ec14875a85 if /target exists, run curtin umount /target before first disk probe
The installer now lets you restart after an install failure, but unless
we do something like this, the target system still being mounted will
make life confusing.

It's more robust to be defensive and try to unmount at startup rather
than trying to unmount before restarting.
2019-11-18 15:35:56 +13:00