Commit Graph

5748 Commits

Author SHA1 Message Date
Dan Bungert 70db2a6414 filesystem: fix kname for os prober 2022-08-25 17:01:33 -06:00
Dan Bungert a6ad70f153 snapcraft: remove dupe jsonschema 2022-08-25 12:08:21 -06:00
Dan Bungert d3275c3e90
Merge pull request #1393 from CarlosNihelton/fix-gray-contrast
Makes our gray ligther to increase contrast.
2022-08-24 08:44:45 -06:00
Carlos Nihelton eb722fef0b
Defaults help text style to gray
Per
https://github.com/canonical/ubuntu-desktop-installer/issues/1073#issuecomment-1224493840.
Custom styles can still be applied.
2022-08-24 11:24:24 -03:00
Carlos Nihelton 5763f33813
Makes our gray ligther to increase contrast.
Per Design's recommendation in:
https://github.com/canonical/ubuntu-desktop-installer/issues/1073#issuecomment-1225569053
2022-08-24 10:16:59 -03:00
Carlos Nihelton 912b9dd416
Sets the help colors to gray
Per Design's recommendation:
See https://github.com/canonical/ubuntu-desktop-installer/issues/1073#issuecomment-1224493840
2022-08-24 09:07:30 -03:00
Olivier Gayot d182b3bd69 integration: speed up check for listening interfaces in system_setup
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-23 18:38:33 +02:00
Olivier Gayot d8a566dc35
Merge pull request #1391 from ogayot/disable-ubuntu-pro
ubuntu-pro: disable in prod until magic-attach is avail. in focal
2022-08-23 18:07:58 +02: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 7502b48147
Caches the native language description
To be reused in other parts of the client UI
2022-08-23 10:45:35 -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 6dd157dac7
Adding WSLSetupOptions API endpoint
Intended to receive options that affect the setup process.
and won't be written to /etc/wsl.conf
Options relative to that conf file are handled by WslConfBase and
WslConfAdvanced.
Currently only the option for skip installing language packs is
available.
2022-08-23 10:45:29 -03:00
Olivier Gayot f6a00b1214 ubuntu-pro: disable in prod until magic-attach is avail. in focal
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-23 14:03:41 +02:00
Olivier Gayot f4efde9dba Merge pull request #1387 from ogayot/FR-2161
Updates for Ubuntu-Pro with magic-attach
2022-08-23 13:48:59 +02:00
Dan Bungert 27be0d47e2
Merge pull request #1388 from jpnurmi/desktop-controller
Add keyboard/input-source
2022-08-22 13:00:21 -06:00
Olivier Gayot 7b24485b7d ubuntu-pro: store number of main/universe packages and end support date in vars
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-19 10:56:00 +02:00
J-P Nurmi d01104995b Add a/keyboard/input-source 2022-08-18 21:35:06 +02:00
Olivier Gayot 5e063ab3ab ubuntu-pro: disable support when network is unavailable
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-18 16:10:44 +02:00
Olivier Gayot d07364dc11 ubuntu-pro: reword text on upgrade mode screen
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-18 16:10:44 +02:00
Olivier Gayot eb69f23ce7 ubuntu-pro: update the view to include magic-attach
We now have the view display the user-code fetched via u-a-c and
automatically validate the contract token when the contract selection
succeeds.

If the magic token expires (i.e., u-a-c times out), a new contract
selection is initiated.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-18 16:10:44 +02:00
Olivier Gayot a029371a85 ubuntu-pro: client-side implementation of magic-attach
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-18 16:10:44 +02:00
Olivier Gayot 23bc0bc0f2 ubuntu-pro: implement contract selection on server side
We now add the interaction between u-a-c and Subiquity for the
magic-attach / contract selection.

This depends on an unreleased version of u-a-c.

A dry-run implementation is provided but does not allow the user to do
the actual contract selection so the contract selection will timeout
unconditionally.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-18 16:10:44 +02:00
Dan Bungert 1a6bfb5bb5
Merge pull request #1383 from dbungert/dispatch-guided-targets
guided: singledispatch and other refactors
2022-08-15 13:22:13 -06:00
Olivier Gayot 386e62df51 ubuntu-pro: hide account name and contact token in subscription screen
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-12 18:37:11 +02:00
Olivier Gayot 384e5dc9b9 ubuntu-pro: update screen that asks whether to enable Ubuntu Pro
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-12 18:37:05 +02:00
Olivier Gayot d81afa4b59 ubuntu-pro: update About Ubuntu Pro screen
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-12 18:37:05 +02:00
Olivier Gayot 8ddb665eb7 ubuntu-pro: reword the how to register screen
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-12 18:36:54 +02:00
Dan Bungert 727a7a8752
Merge pull request #1385 from dbungert/create-force-logical
filesystem: create_partition logical in extended
2022-08-12 09:42:46 -06:00
Dan Bungert d9e77abb96 filesystem: create_partition logical in extended 2022-08-12 07:55:19 -06:00
Dan Bungert 3ced71a925
Merge pull request #1382 from dbungert/v2-guided-wait
filesystem: add wait arg for v2_guided_GET
2022-08-12 07:18:56 -06:00
Dan Bungert 5afbc4be42 filesystem: add wait for v2_GET and v2_guided_GET 2022-08-11 14:15:26 -06:00
Dan Bungert 7e4db5e769 controll feedback 2022-08-11 13:29:43 -06:00
Dan Bungert e85bdae95d gaps feedback 2022-08-11 13:29:33 -06:00
Dan Bungert 6134d3d3df filesystem: expand side by side unittest for gpt 2022-08-11 13:15:15 -06:00
Dan Bungert fe46f3ce39 filesystem: refactor guided related methods 2022-08-11 13:15:15 -06:00
Dan Bungert fe0745a83e gaps: move gaps.within() to method 2022-08-11 13:15:15 -06:00
Olivier Gayot 319259f6ac ubuntu-pro: spell "how to register" consistently
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-11 11:29:23 +02:00
Olivier Gayot 324ff0bc8f Merge pull request #1372 from ogayot/FR-2475
install: invoke curtin multiple times with different stages
2022-08-11 11:11:51 +02:00
Olivier Gayot 10f570394e install: write logs and error-file to a single known location
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-11 09:44:26 +02:00
Olivier Gayot 559b904f54 install: don't run curtin install for hook stage
The hook stage does not do anyting in Ubuntu. Let's skip it.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-11 09:24:09 +02:00
Olivier Gayot 4c70b78fba install: invoke curtin multiple times with different stages
We now invoke curtin install in a step-by-step mode. Before, we would
perform a single invocation of curtin install for the following stages:

 * early (but no early_commands configured)
 * partitioning
 * extract
 * curthooks
 * hook
 * late (but no late_commands configured)

We now run multiple invocations of curtin install, in 5 different steps:

 * initial: does not run any stage per se but prepares curtin
   for the next invocations (this invocation is not strictly necessary
   and could be merged with the next step but having it separate makes
   the flow easier to understand, I think)
 * partitioning: runs the partitioning stage
 * extract: runs the extract stage
 * curthooks: runs the curthooks stage

The early and late stages were dropped since they would act as no-ops.
We also dropped the hook stage since it does nothing in Ubuntu.

The configuration files for each step ends up in
/var/log/installer/curtin-install/subiquity-{step_name}.conf

The log files for each step end up in
/var/log/installer/curtin-install/{step_name}.log

If errors occur, a tarball of the necessary logs end up in
/var/log/installer/curtin-install/{step_name}-error.tar

All files (i.e. configuration files, log files, error-files) are bundled
in the apport report in case of crash.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-11 09:16:06 +02:00
Olivier Gayot 5151dc76ee
Merge pull request #1381 from ogayot/FR-2594
Execute run-parts on /etc/subiquity/postinst.d before executing any other late_commands
2022-08-10 17:39:54 +02:00
Dan Bungert b2510de9a1
Merge pull request #1384 from dbungert/fsobj-ids-v2
filesystem: part ids are not part nums
2022-08-09 17:26:04 -06:00
Dan Bungert 5fcd6776c1 filesystem: part ids are not part nums
The filesystem object IDs are really only meant to be a semireadable
unique string, and not for display to end users.  Partitions in
particular were bad in this respect, as they could look like the number
on the end was the partition number.

Uglify the object IDs a bit to try to convey the above.
2022-08-09 16:32:36 -06:00
Dan Bungert 54531c242b
Merge pull request #1379 from dbungert/guided-create-logical
filesystem: guided creates logicals if in_extended
2022-08-09 11:48:59 -06:00
Dan Bungert 60378fc7bf filesystem: guided creates logicals if in_extended 2022-08-09 11:23:53 -06:00
Dan Bungert 8841807104 gap: respect ebr_space 2022-08-09 10:28:21 -06:00
Dan Bungert f67c6f9d2a
Merge pull request #1378 from dbungert/boot-respect-primaries
boot: fix too many primaries case
2022-08-09 08:19:51 -06:00