Michael Hudson-Doyle
34afb5b40c
update license headers outside of subiquity package
2024-04-29 09:28:40 +12:00
Dan Bungert
34d40643ad
format with black + isort
2023-07-25 15:27:42 -06:00
Carlos Nihelton
5319633d78
Makes the wsl_conf imune to None
2022-12-16 13:28:11 +00:00
Carlos Nihelton
b4734ad587
Makes the default_loader for wsl.conf testable
2022-09-15 16:24:18 -03:00
Carlos Nihelton
08d4c39387
Fix the missing `system_setup.common` error.
...
When Subiquity is packaged as its own snap, that subdirectory is not
present.
That is due the lack of an `__init__.py` file.
2022-09-13 15:56:37 -03:00
Didier Roche
09c7210406
System-Setup: fix typos
...
Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
2022-03-16 12:24:46 +01:00
Didier Roche
208d8778c9
System-Setup: Clean up load data API
...
We don’t need to pass an empty dict as parameter.
Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
2022-03-16 12:24:46 +01: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
Carlos Nihelton
b17c3d3db9
Cleanup complete.
...
- No user setup in wsl.conf
- Shutdown controller creates the launcher-command file
2021-12-14 12:13:00 -03:00
Carlos Nihelton
10f209ad81
Linting issues fixed.
2021-10-28 15:54:07 -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
Patrick Wu
8559d7fe7d
modulizing the usergroup retriving
2021-10-12 10:07:45 +08:00
Patrick Wu
271b72b41a
system_setup: setup user with wsl.conf
2021-10-11 15:33:46 +08:00
Patrick Wu
07b0407815
system_setup: refactor the testing system
...
1. updating testing system with the proper autoinstall schema
2. reconf mode testing included
2021-10-08 20:49:06 +08:00
Patrick Wu
5879b41e48
system_setup: several fixes that should be merge before DEENG-82
...
1. fix a wrong type information
2. fix some configuration error when updating information
2021-10-08 16:41:28 +08:00
Patrick Wu
1c111c764c
system_setup: write files to .subiquity when dryrun
2021-10-07 16:25:07 +08: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
9fbff87fe1
system_setup: changes to the get-usersandgroups
2021-10-06 22:13:15 +08:00
Patrick Wu
32a62748c9
system_setup: initial redesign of generic config handler
...
Also have to change the logic for default loader
2021-10-06 22:13:15 +08:00
Patrick Wu
f31e252436
system_setup: reduce code duplication in getting default value
2021-10-06 22:13:15 +08:00
Patrick Wu
032412a938
system_setup: provide configuration calls
2021-10-06 22:13:15 +08: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
Patrick Wu
1aac580dfd
system_setup: update the detection logic
2021-09-20 21:58:16 +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