Michael Hudson-Doyle
78fe5e82a8
Merge pull request #1053 from mwhudson/broadcast-configured
...
Have SubiquityController.configured broadcast rather than set an event
2021-09-21 10:09:58 +12:00
Michael Hudson-Doyle
4710e81367
Merge pull request #1052 from mwhudson/generalize-packages
...
generalize how models can ask for pcakges to be installed in the target
2021-09-21 10:03:45 +12:00
Jean-Baptiste Lallement
0a5b8fcf46
Do not wait on cloud-init on system without cloud-init
...
On systems where cloud-init cannot run (ie WSL) we where waiting forever
on cloud-init
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-20 19:30:36 +02:00
Jean-Baptiste Lallement
eee1e9de6d
Start server if not socket activated
...
On systems without socket activation enabled, the client starts the
server manually.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-20 19:29:10 +02:00
Patrick Wu
365769c365
system_setup: update Summary code
2021-09-20 21:58:16 +08:00
Patrick Wu
1aac580dfd
system_setup: update the detection logic
2021-09-20 21:58:16 +08:00
Patrick Wu
ceae8e9d19
system_setup: fixes according to the feedback
...
1. update client_variant comment
2. remove Welcome controller
3. remove a TODO
2021-09-20 19:54:27 +08:00
Patrick Wu
6303b5d6c5
system_setup: proper wsl_configuration UI setup
...
This fixes In wsl_configuration mode the UI shows ”base”/”advanced” screens.
2021-09-20 19:54:14 +08:00
Patrick Wu
018185af49
system_setup: system setup API for Flutter UI part
...
This completes TODO "provide an API for this for the flutter UI to know
about it"
API is at /meta/client_variant with GET method, returns a string
2021-09-20 19:39:20 +08:00
Patrick Wu
78221ebf25
system setup: auto reconf mode general completion
...
Mostly complete the second task except the API for GUI:
Implement an API in the server to know if we are in reconfigure or setup mode based on existing UID user >= 1000. Fetch that API from the client and set the variant to wsl_setup or wsl_configuration.
2021-09-20 19:39:20 +08:00
Michael Hudson-Doyle
156aabbd35
allow target_packages to be async
2021-09-17 15:48:24 +12:00
Michael Hudson-Doyle
c695dfec82
generalize how models can ask for pcakges to be installed in the target
2021-09-17 15:41:18 +12:00
Michael Hudson-Doyle
9051a33c4f
make SubiquityController.configured async
2021-09-16 20:59:01 +12:00
Michael Hudson-Doyle
aa9c945674
Have SubiquityController.configured broadcast rather than set an event
...
This should make it cleaner to implement interdependencies between
controllers, like in-progress installation source selection needs to
know about locale changes.
2021-09-16 20:59:01 +12:00
Michael Hudson-Doyle
ac8052b97c
Merge pull request #1047 from dbungert/actions-existing-contribs
...
actions: +accept-existing-contributors for CLA
2021-09-14 15:12:28 +12:00
Michael Hudson-Doyle
1519c49d8e
Merge pull request #1030 from mwhudson/source-selection-3
...
install source selection
2021-09-14 15:10:58 +12:00
Michael Hudson-Doyle
341e176ffa
Merge pull request #1049 from mwhudson/lp-1903050
...
fix console_conf yet again
2021-09-14 15:04:14 +12:00
Michael Hudson-Doyle
65b3cdf79b
fix console_conf yet again
2021-09-13 16:22:25 +12:00
Michael Hudson-Doyle
5c66260369
remove min_size from guided API, use source installed size instead
2021-09-13 13:23:16 +12:00
Michael Hudson-Doyle
6fd5eb6ee9
do not need to POST to /meta/client_variant any more
2021-09-13 13:23:16 +12:00
Michael Hudson-Doyle
8c83ad05cc
simple client side ui for source selection
2021-09-13 13:23:16 +12:00
Michael Hudson-Doyle
a6270cbaa1
server side implementation of source selection
2021-09-13 13:23:09 +12:00
Michael Hudson-Doyle
1c5cf3adf8
Merge pull request #1048 from dbungert/disable-autoinstall
...
autoinstall: skip autoinstall on empty arg
2021-09-13 12:11:24 +12:00
Michael Hudson-Doyle
93e157904e
Merge pull request #1034 from mwhudson/curtin-update
...
update curtin
2021-09-13 12:09:31 +12:00
Dan Bungert
0257e90052
autoinstall: skip autoinstall on empty arg
...
If autoinstall is set on the command line, don't override that with a
pre-baked file or from cloud-init. The intent here is to allow
ubuntu-desktop-installer to temporarily say --autoinstall="" to disable
autoinstall until UI support for autoinstall is in place.
2021-09-10 10:40:01 -06:00
Dan Bungert
6b1700bd47
actions: +accept-existing-contributors for CLA
...
Canonical employees who have not signed the CLA, and sign commits with
their ubuntu.com alias, fall into a weird gap where their commits are
covered (as employees) but there is no great way for the CLA check to
determine that.
https://github.com/canonical/subiquity/pull/1044#issuecomment-916764603
2021-09-10 07:44:06 -06:00
Didier Roche
2b3d163aa7
Merge pull request #1045 from canonical/system_setup_duplicated_fields
...
DE-97 - system-setup: finished removing duplicated fields
2021-09-10 12:16:11 +02:00
Jean-Baptiste Lallement
717cb5b541
system-setup: finished removing duplicated fields
...
There was some remaining duplicated fields in the controllers and models
between base and advanced configuration, which made the code crash.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-10 12:07:55 +02:00
Michael Hudson-Doyle
1f49f0285e
Merge pull request #1043 from dbungert/cla
...
actions: add cla-check
2021-09-10 12:00:45 +12:00
Dan Bungert
f563ab0839
actions: add cla-check
2021-09-09 17:14:05 -06:00
Patrick Wu
e661b08905
system_setup: no longer inherits
2021-09-09 16:23:47 -06:00
Patrick Wu
43497a99cb
system setup: reduce WSLConfigurationAdvanced size
...
by inheriting WSLConfigurationBase
2021-09-09 16:23:47 -06:00
Dan Bungert
9c47505ae0
types: create server/types for InstallerChannels
2021-09-08 18:33:57 -06:00
Dan Bungert
a005418cde
pubsub: split channels into two classes
2021-09-08 18:33:57 -06:00
Dan Bungert
bc8fda47f6
EventCallback: remove
2021-09-08 18:33:57 -06:00
Dan Bungert
3a69683128
geoip: switch to MessageHub
2021-09-08 18:33:57 -06:00
Dan Bungert
44a68062d0
mirror: prep for conversion from Event -> Message
...
MessageHub isn't sending a changed value, so lookup the value another
way. Helps to prep for removing the usage of EventCallback.
2021-09-08 18:33:57 -06:00
Dan Bungert
fc95c72f35
pubsub: Add unit test for MessageHub
...
Also minor cleanup on the soon-to-be-removed EventCallback test to help
demonostrate that some of this code isn't needed.
2021-09-08 18:33:57 -06:00
Dan Bungert
0ea8139f32
MessageHub: Switch to using enum constants
2021-09-08 18:33:57 -06:00
Michael Hudson-Doyle
221f7f98f0
Merge pull request #1038 from canonical/wsl_oobe
...
OOBE and configuration for WSL
2021-09-06 20:23:14 +12:00
Jean-Baptiste Lallement
b47362ea2a
Fixed linting
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 10:18:18 +02:00
Jean-Baptiste Lallement
2585ab0ce2
Remove uneeded controller unloading
...
This was a leftover from where we were loading them unconditionally
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 10:11:35 +02:00
Jean-Baptiste Lallement
0a590e2c10
Helper for timedatectl detection
...
This is done now at running time.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 10:02:23 +02:00
Jean-Baptiste Lallement
46eb52c9cb
Split system_identity controller from subiquity one
...
There is little inherited from it, let’s split them.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 09:52:23 +02:00
Jean-Baptiste Lallement
039201949d
Remove uneeded confirmation handling in system_setup
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 09:52:08 +02:00
Jean-Baptiste Lallement
ea29709573
Fix typo and punctuation
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 09:45:37 +02:00
Jean-Baptiste Lallement
3cdaf76153
Mark as TODO adding a helper for future refactoring
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 09:44:51 +02:00
Jean-Baptiste Lallement
2a36e30812
Remove set conversion and explicitely init it
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 09:39:32 +02:00
Jean-Baptiste Lallement
4c83e4afde
Remove duplication in server execution code
...
Make command line and dry-run command line a class member.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 09:38:50 +02:00
Jean-Baptiste Lallement
ef9d387b4f
Removed unused function
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-03 09:08:44 +02:00