Dan Bungert
0f9c9eef3f
options: add output_base for dryrun use
...
To enable parallel API testing, add an output_base argument to replace
the default '.subiquity' that is sprinkled everywhere.
2022-01-26 10:39:23 -07:00
Carlos Nihelton
4bb8ee3b3b
SystemSetupModel now acks the variant at start.
...
- Without this change, wsl_configuration variant is not reckon without
client_variant.POST.
- Issue and suggestions of fixes originally reported by jpnurmi.
2021-11-11 09:22:10 -03:00
Didier Roche
f762f41a5b
Don’t override syslog dir to prevent printing on TUI.
...
Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
2021-11-03 10:32:57 +01:00
Carlos Nihelton
af91bb0a6f
Removing dead code.
...
- My bad.
2021-10-29 20:23:16 -03:00
Carlos Nihelton
4c0ad44738
Moving logic form SystemSetupModel to controllers.
...
- In order to stay confined into system_setup,
WSLLocaleController had to be recriated.
2021-10-29 12:53:06 -03:00
Carlos Nihelton
2125acffe6
WSL Locale controller is not needed anymore.
...
- With 'prefill' working, calling Powershell to find Windows locale
is not required anymore.
- Since `f21986be` subiquity's default locale controller respects
mode.selected_language initialization.
2021-10-28 15:52:24 -03:00
Carlos Nihelton
168a5c13a0
SystemSetupModel handles 'prefill' data
...
- Init method changed to accept that data, which could be None.
- If valid, user Identity and Locale are prepopulated.
- Server parses the YAML and send valid info (or None) to the Model.
2021-10-28 15:52:24 -03:00
Jean-Baptiste Lallement
6cc8c6169b
Fix crash with autoinstall on non-systemd env
...
On WSL and any system without systemd the server crashes becauses
the syslog id is always set (and never None) and systemd cat cannot
connect to the journal.
We cant set the id to None because the API expects a string, so the
check "is not None" is always true.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-10-04 13:09:24 -07:00
Jean-Baptiste Lallement
4966173d6c
Test system setup autoinstall
...
It also adds an argument --ignore-tz to the schema comparison test to
not fail on system where the schema has no TZ like WSL.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-28 09:32:39 +02:00
Jean-Baptiste Lallement
f13bb1121f
Fix: use right identity controller for system setup
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-28 09:26:10 +02:00
Patrick Wu
65530cf3b3
system_setup: additional Base/Avanced changes and fixes
...
the fixes includes:
1. renamed helpers.py to wsl_utils.py
2. update several log strings
3. renamed LocaleController to WSLLocaleController
4. improving logic and warnings in get_windows_locale()
5. move config_ref to wsl_utils.py
5. fixes bool_converter()
6. fixes locale configured() getting stuck
2021-09-27 20:36:25 +08:00
Michael Hudson-Doyle
2f9c22961e
Merge pull request #1042 from canonical/wsl_oobe_auto_reconf_mode
...
DE-98/DE-99 - system_setup: Wsl oobe auto reconf mode
2021-09-24 14:26:23 +12: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
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
Patrick Wu
1aac580dfd
system_setup: update the detection logic
2021-09-20 21:58:16 +08: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
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
805a84ab76
Linter fixes
...
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-01 11:02:25 +02:00
Jean-Baptiste Lallement
5d318b2fbb
Rebase on new subiquity model.
...
Variants are set at the application level and impact the models.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-01 10:55:06 +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
3044a1fc11
Update answer file with renamed controllers
...
WSL configuration controllers have been renamed, the answer file must be
updated accordingly
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
dcab9c2e6e
Removal of --reconfigure for server
...
Load all the server controller independently whether it is in first
configuration or reconfiguration mode.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
518cff3d3b
Fixed linting
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
688af116f5
Added shutdown and configure controller for the WSL server
...
This is the WSL implementation of the Install and Shutdown controllers
that inherit from the base controllers.
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
8c3f0bc264
Inherit from base server
...
Inherit from the base server instead of reimplementing it completely
and override the methods needed for WSL. This removes lots of code duplication.
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
d89d9c3f7d
system_setup: prevent loading unnecessary library
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
55fdfc1df0
system_setup: fix a small bug in api calling
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
3536f0517a
system_setup: attempt to fix the bug
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
ef2be951b2
WSLConfiguration2 API complete
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick
339e66a2c3
system_setup: initial setup
2021-08-31 15:52:03 +02:00