Dan Bungert
9d12871f15
many: s/create_task/run_bg_task/
...
create_task has the following note:
Important: Save a reference to the result of this function, to avoid a
task disappearing mid-execution.
Convert existing usage of create_task to run_bg_task, if that
create_task is not actually storing the result.
2023-02-13 14:56:07 -07:00
Carlos Nihelton
0540c521fe
Moves WslConfBase to the reconfiguration workflow
2022-12-16 13:28:10 +00:00
Carlos Nihelton
1647a98ce3
Removes the now unused install_running
...
variable and module.
2022-12-09 11:59:31 +00:00
Carlos Nihelton
6d6e1e7854
Removes the switch to shell widget
...
From the summary controller when installation is in progress.
The shell is inoperable on WSL due the fake snap environment.
2022-12-09 11:44:08 +00:00
Michael Hudson-Doyle
85b3cd0724
switch from loop.create_task to asyncio.create_task
...
mostly done with sed
2022-11-08 10:08:46 +13:00
Edu Gómez Escandell
b939b0e552
Fix
2022-09-27 14:13:36 +02:00
Carlos Nihelton
69934729da
Removes forgotten log statement.
2022-08-26 16:09:02 -03:00
Carlos Nihelton
1fab813d8a
DEENG-378 Uses the cached native lang descript...
...
...tion to format the checkbox caption
2022-08-23 11:30:12 -03:00
Carlos Nihelton
1d9b7449d3
Fixes linting warnings
2022-08-23 10:45:34 -03:00
Carlos Nihelton
20b60d6f98
Connects the new controllers to server and client.
...
Higher level constructs are now aware of the new endpoint.
2022-08-23 10:45:34 -03:00
Carlos Nihelton
fdc43496f5
Implements client and server ...
...
... for WSL Setup Options
Both controllers and UI
2022-08-23 10:45:34 -03:00
Carlos Nihelton
87112ebecf
Sets TUI about help message on super init.
2022-05-26 07:37:35 -03:00
Carlos Nihelton
3c27982939
Programmatic manipulation of the lsb fields
...
For better message composition.
2022-05-24 14:25:34 -03:00
Carlos Nihelton
2adc001693
Customises WSL system_setup Help/About message.
2022-05-24 13:58:13 -03:00
Carlos Nihelton
0dba0722ab
WSL Validates the username with the endpoint.
2022-05-10 09:17:36 -03:00
Jean-Baptiste Lallement
a3a21da408
Removed systemd from the UI
...
We won't ship systemd officially in 22.04, hence remove it from the UI.
However it's still there and distributed and can be enabled manually.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2022-04-07 10:55:30 +02:00
Didier Roche
d17cd6fc38
System-Setup: Add systemd experimental support to WSL
...
Grow a new API for enabling/disabling systemd experimental support. We
do this by chaining a specific command= in the boot section.
We preserve the user customized command= content when systemd
experimental support is not enabled.
Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
2022-03-16 12:24:18 +01:00
Didier Roche
5695da5699
system-setup: Remove ubuntu-wsl-integration from API and TUI.
...
This project is no longer supported under WSL. Remove integration in the TUI
and API for it. Adapted tests and schema.
2022-03-14 15:58:03 +01:00
Olivier Gayot
812bba1de1
Use logger names consistent with directory structure
...
Refreshed name of loggers to make them consistent with the directory
structure.
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-02-25 17:35:45 +01:00
Didier Roche
f8e90c894d
Summary page to show immediately and update once the setup is done
...
Shows immediately the summary page. Before, this one was making a GET
request to the server, which was stuck on any long running command in
the controller.
Now, affect correctly the identity in memory and reuse it if needed.
Show a progress message while the configuration is happening and replace
it with a "completed" text on success.
Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
2021-11-03 10:48:03 +01:00
Patrick Wu
c934268813
system_setup: changes and fixes
...
1. rebase with main and update autoinstall-system-setup.yml
2. provide a more unified indent style
3. update get_userandgroups() to the dropped one
4. fix the problematic os action
5. simply asignments
6. assign default_loader a default value
7. provide a type-to-file dict in wsl_conf
8. provide stderr info when providing error in creating user
9. update schema and example files
2021-10-06 22:13:15 +08:00
Patrick Wu
1a7274dbba
system_setup: unify api names and simply WSLconfig class into function
2021-10-06 22:13:15 +08:00
Patrick Wu
ee3a3df893
sustem_setup: fixes according to Michael's feedback
2021-09-23 15:10:39 +08: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
Patrick Wu
e661b08905
system_setup: no longer inherits
2021-09-09 16:23:47 -06: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
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
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
ab161250e1
Removed the progress view.
...
On non systemd systems (ie WSL) the progress view is always empty. Thus
this view is removed and the summary (formerly overview) view becomes
the last page of the setup with the reboot button. This button is
displayed dynamically when setup is complete.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-01 19:06:50 +02:00
Jean-Baptiste Lallement
da5c83d4f1
Set supported and current variant for WSL
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-01 10:44:37 +02:00
Jean-Baptiste Lallement
518cff3d3b
Fixed linting
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
ba6ce20d64
Do not use a file to share user name
...
Instead retrieve it from the server and store it in memory.
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
41945cb84c
Renamed configuration pages
...
In order to make naming more explicit renamed wslconf1 to wslconfbase
and wslconf2 to wslconfadvanced.
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
57a2212c7b
List of TODOs
...
This is the list of identified TODOs for the OOBE.
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
f41f44e9d6
Misc cleanups
...
* Rename/add debug with correct naming
* Remove uneeded and unused hostname in identity
* Add automatic answer support to overview
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
eae46aa50a
system_setup: fixes for merge (WIP)
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
3dccdddf39
system_setup: no longer require sudo for dryrun
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
aff93e5cda
system_setup: PEP8 linting fixes
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
6bb86645ea
system_setup: dryrun username
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
a97cc28ae6
Reconfigure mode: WIP
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
6cbe3e8a36
Generic Fixes
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
6e92218006
TUI: Add initial Overview Support
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
4672a1b772
TUI: Intergration Page
2021-08-31 15:52:03 +02:00