Commit Graph

4354 Commits

Author SHA1 Message Date
Jinming Wu, Patrick d217db86a2 Revert "system_setup: identity tui validation fix"
This reverts commit 2f3dc90b7e.
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick f42f1d133e Reconfigure mode: 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 0ad5152069 system_setup: initial Progress fix 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 300161e0ea system_setup: Pre fixes 2021-08-31 15:52:03 +02:00
Didier Roche 1e52ab6374 Use inheritance for IdentityForm
The previous composition version had some flaws due to multiple
instances of a given Field with different addresses when reinstalled in
the parent class. This caused the field validation validate_ to not work
as it was not taken the expected referenced values.

Instead of duplicating the code, we use an inherited version, taking and
overriding only our desired fields.

We still need to derive WSLIdentityView from the base class instead of
IdentityView, as this is what is instantiating the form.
(WSLIdentityForm instead of IdentityForm).

Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
2021-08-31 15:52:03 +02:00
Didier Roche 74e5c47c25 Revert "system_setup: identity tui validation fix"
This reverts commit 2f3dc90b7e.
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 90bb156141 subiquity/common/types.py: WSLConf1 type fix 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick 9745fcc05f system_setup: identity tui validation fix 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 3536f0517a system_setup: attempt to fix the bug 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick f4c7dc68dd linting fixes 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick cc7a199371 Reconfigure mode: WIP 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
Didier Roche f00d1d659e Add missing copyrights 2021-08-31 15:52:03 +02:00
Didier Roche 87002bddeb SystemSetupClient to control system setup tui
This class declares the controllers we want to use and consequently,
which views in which orders we present to the user.
Reuse the Welcome controller from subiquity by reimporting it in
system_setup.client.controllers.
Redefine the restart functionality to not depends on snap.
2021-08-31 15:52:03 +02:00
Didier Roche d8e0026df5 WSL identity controller and view
This controller and view inherits from the subiquity identity, but
remove the "hostname" field. We are using composition over inheritance
for identityController as the UI builder is basing on the order of
declared elements as class variable and we can’t override that in the
metaclass when inheriting.
2021-08-31 15:52:03 +02:00
Didier Roche 73e1ab7901 Make network optional
As we don’t have a network object in WSL and inherit from the base
class, ensure it can be None.
2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick 84774c5dc4 WSL User API reimplementation 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 57ee7cd8e0 .gitignore: ignore .vscode 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick 486e05eeb1 Makefile: System_setup specific drtrun param 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick 653d015d2d subiquity/server/server.py: NOPROBER setup 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick 91fb547fe8 Makefile & setup.py: include corr. build cmds 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick 339e66a2c3 system_setup: initial setup 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick b9f6ed2c81 subiquity/server/server.py: provide no_snapd support 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick d75bcbda04 Include definitions and utils
1. Inlcude api definitions and types;
2. Inlcude is_wsl utility.
2021-08-31 15:52:03 +02:00
Michael Hudson-Doyle 3f06d733cf
Merge pull request #1036 from joeljose350/main
Fixed a typo
2021-08-30 20:34:52 +12:00
Joel Jose 4ff90a0a19 Fixed a typo 2021-08-30 12:32:15 +05:30
Michael Hudson-Doyle 1001cdc997
Merge pull request #1033 from mwhudson/slimy-update-snap-for-upload
make the snaps produced by slimy-update-snap.sh pass review
2021-08-25 16:29:31 +12:00
Michael Hudson-Doyle 288a7e23f4 update curtin 2021-08-24 11:45:15 +12:00
Michael Hudson-Doyle d1cc1cf593 make the snaps produced by slimy-update-snap.sh pass review
I mean we /probably/ shouldn't be using the snaps this makes for
anything serious but it can be useful for testing emergency fixes...
2021-08-24 11:43:24 +12:00
Michael Hudson-Doyle 1c06aba1ec
Merge pull request #1029 from mwhudson/reboot-flexibility
add more flexibility for shutdown time
2021-08-22 22:00:56 +12:00
Michael Hudson-Doyle a9d7e46b5f add autoinstall config to choose shutdown mode 2021-08-22 09:36:41 +12:00
Michael Hudson-Doyle 7f1beb1d64 add a mode argument to shutdown to allow reboot or power off 2021-08-22 09:36:41 +12:00
Michael Hudson-Doyle a2675b6ca6 add an immediate parameter to request immediate reboot 2021-08-22 09:36:41 +12:00
Michael Hudson-Doyle fc39247073 rename "reboot" controller/endpoint to "shutdown" 2021-08-22 09:36:41 +12:00
Michael Hudson-Doyle d44d29b3a5
Merge pull request #1032 from mwhudson/translations-update
update translations from launchpad
2021-08-20 14:17:15 +12:00
Michael Hudson-Doyle c96f0302da
Merge pull request #1031 from mwhudson/update-part-wtf
unset GIT_DIR in update-part.py
2021-08-20 10:33:14 +12:00
Michael Hudson-Doyle 107428628e update translations from launchpad
A while ago I set up subiquity for translations at
https://translations.launchpad.net/subiquity by uploading the pot and po
files that were current at the time and set it to export translations to
lp:~canonical-foundations/subiquity/translations-export (unfortunately,
launchpad translations only support exporting to bzr).  This commit
contains the po files from that branch. The diff is noisy but I don't
think there are many actual changes (although there are a few so some
people must have found this).

I haven't publicized this or asked the ubuntu-translators team to work
on the translations because I am still uncertain about what the best way
to manage translations for subiquity is. But this still seems better
than nothing.
2021-08-20 09:26:12 +12:00
Michael Hudson-Doyle a29d14a3f1 unset GIT_DIR in update-part.py
Otherwise very confusing things happen (it turns out GIT_DIR is set when
running an exec command during rebase).
2021-08-19 17:12:16 +12:00
Michael Hudson-Doyle c75ff1fccf
Merge pull request #1021 from mwhudson/variant-flexibility
redo how install variant determines which models to wait for
2021-08-17 16:08:54 +12:00
Michael Hudson-Doyle 0948a6c4f8
Merge pull request #1028 from mwhudson/curtin-update
update curtin
2021-08-12 13:19:14 +12:00
Michael Hudson-Doyle fbfbf67eb5 update curtin 2021-08-12 13:11:04 +12:00