Commit Graph

134 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 47af1de57e remove setting of umask, redact wifi password from log file
The setting of umask was breaking configuring wifi :(
2016-10-26 11:02:23 +13:00
Michael Hudson-Doyle d594b77f28 do not write the netplan config so the world can see it 2016-10-20 12:37:19 +13:00
Michael Hudson-Doyle f603207d94 remove most trivial use of signals from console-conf's flow 2016-10-11 12:48:28 +13:00
Michael Hudson-Doyle e348207597 Remove most use of signals from welcome and network views. 2016-10-10 16:47:42 +13:00
Michael Hudson-Doyle d9095336e5 do not have controllers (or view code!!) know the order of the screens 2016-09-27 21:35:47 +13:00
Michael Hudson-Doyle 2373837269 make fake network actions in dry-run mode a lot quicker 2016-09-27 20:53:17 +13:00
Michael Hudson-Doyle dad0e10912 completely separate menu -> signal and signal -> method mappings
and put the signal -> method mapping into the controller

this breaks the subiquity part even more than before, but it's pretty broken
already.
2016-09-27 20:53:17 +13:00
Michael Hudson-Doyle e765538c95 address some UI comments from Mark 2016-09-20 14:13:31 +12:00
Michael Hudson-Doyle fdd99e21f0 be more careful in BackgroundProcess.cancel
Someone sent me a traceback where cancel() was called before .proc was set.  I
don't really understand how this happens, but there's no harm in being careful.
2016-09-15 21:35:48 +12:00
Michael Hudson-Doyle 60b4262b07 remove gratuitous delta a bit 2016-09-05 16:39:58 +12:00
Michael Hudson-Doyle f58d2aa7c0 refactor a bit 2016-09-05 16:38:26 +12:00
Michael Hudson-Doyle f9668b8802 more low quality UI work 2016-09-05 15:36:59 +12:00
Michael Hudson-Doyle bf3384596e a start a configure-wifi ui 2016-09-05 12:03:06 +12:00
Michael Hudson-Doyle c6b17fdf43 Overwrite the netplan config that snap firstboot creates. 2016-08-31 11:22:23 +12:00
Michael Hudson-Doyle fedcb10560 add WaitForDefaultRouteTask, use it instead of networkd-wait-online
It polls though, sorry Mathieu!
2016-08-30 15:08:05 +12:00
Michael Hudson-Doyle fe8f99fbec an example of how to implement a task as python 2016-08-30 14:15:46 +12:00
Michael Hudson-Doyle 549c00279d refactor network application code so that it does not assume all steps are subprocesses 2016-08-30 14:14:08 +12:00
Michael Hudson-Doyle 0a2546b3bd do not probe network on returning from network sub-screen
otherwise we overwrite our settings with the probed data!
2016-08-23 12:47:55 +12:00
Michael Hudson-Doyle 9ce7116f36 a touch more logging 2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle a734e84980 refactor a bit 2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle efa8ef43d2 allow configuration to be canceled 2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle c658da012d factor some stuff out into an object
separation of concerns still pretty strange for now
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle ef01c7d291 break run_command in two
and use the two halves when applying network config (to allow cancellation)
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle 24347f1843 use run_command_async 2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle e0a7aded85 update UI while apply network steps are running
as a special hack, the first time you apply changes in dry run mode it will
fail
2016-08-22 17:02:42 +12:00
Mathieu Trudel-Lapierre e02a4c8d55 Use netplan apply instead of restarting networkd ourselves.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-08-18 16:17:22 -04:00
Mathieu Trudel-Lapierre 958ab1a339 Show decent error messages on failure.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-08-18 16:15:28 -04:00
Michael Hudson-Doyle 9751b1a6b3 be more careful about checking exit statuses 2016-08-17 20:44:59 +12:00
Mathieu Trudel-Lapierre 0e93ab3e61 Check we're online, display network error otherwise. 2016-08-16 15:25:58 -04:00
Mathieu Trudel-Lapierre 11782ced12 Improve handling of the default routes. 2016-08-16 12:59:19 -04:00
Mathieu Trudel-Lapierre 18c7e93cc2 WIP: Remove actions, port to an approximation of network yaml v2. 2016-08-13 00:13:22 -04:00
Mathieu Trudel-Lapierre 1980c4e483 fake-merge mwhudson/network 2016-08-12 22:31:31 -04:00
Michael Hudson-Doyle f027382877 rename ControllerPolicy to BaseController 2016-07-26 14:17:30 +12:00
Mathieu Trudel-Lapierre e1970b6477 Rename subiquity to subiquitycore -- will serve as base classes for everything
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:17:01 -04:00