Commit Graph

4290 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 3ba3815e73
Merge pull request #1061 from mwhudson/log-dir-permissions
set wider permissions on log directory
2021-09-23 21:50:42 +12:00
Michael Hudson-Doyle 7f6af23694 set wider permissions on log directory 2021-09-23 21:24:44 +12:00
Patrick Wu ee3a3df893
sustem_setup: fixes according to Michael's feedback 2021-09-23 15:10:39 +08:00
Michael Hudson-Doyle df3724881f keep answers compatibility for snaplist 2021-09-23 15:41:09 +12:00
Dan Bungert 3de314a64f fixup: snap & autoinstall 2021-09-22 17:45:58 -06:00
Dan Bungert e41851765e autoinstall: fix snap output
schema wanted to match on classic, but autoinstall was generating as
is_classic.
2021-09-22 16:54:03 -06:00
Dan Bungert 46c57fc6f0 autoinstall: fix kernel output
The generated autoinstall was doing an extra level of kernel output.
2021-09-22 16:50:56 -06:00
Didier Roche fa9957d27d
Merge pull request #1055 from canonical/wsl_oobe_no_dry_mode
WSL OOBE - no dry mode
2021-09-21 11:49:38 +02:00
Dan Bungert 7153a03d36
Merge pull request #1057 from dbungert/cleanup-runtests
runtests: misc cleanup
2021-09-20 17:46:17 -06:00
Dan Bungert 525060be16 runtests: misc cleanup
* remove a stray space
* remove an extra call to check-yaml-fields.py, which can accept a list
  of directives
* remove an entire redundant autoinstall run that I added as part of
  bitlocker work but isn't actually verified in any way other than not
  timing out
2021-09-20 16:46:23 -06:00
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