Commit Graph

6350 Commits

Author SHA1 Message Date
Dan Bungert d420d91ed0
Merge pull request #1695 from dbungert/doc-clarify
doc: update README
2023-06-13 08:08:28 -06:00
Olivier Gayot eea922cd1b oem: add GET endpoint returning OEM meta-packages to be installed
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-06-13 14:23:42 +02:00
Olivier Gayot a804bbfe8b oem: add minimal model + controller
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-06-13 14:14:05 +02:00
Michael Hudson-Doyle 40b18f8fe3
Merge pull request #1694 from mwhudson/guided-reasons
return some information about disallowed guided options
2023-06-13 10:04:51 +12:00
Michael Hudson-Doyle ab6e643d50 start to return disallowed guided options 2023-06-13 09:55:17 +12:00
Michael Hudson-Doyle 702badf815 record allowed and disallowed capabilities for each source variation
Also rewrite a bit of my old code even I now find confusing.
2023-06-13 09:55:17 +12:00
Michael Hudson-Doyle 92560a87b5 add disallowed types and fields 2023-06-13 09:55:13 +12:00
Michael Hudson-Doyle 3ec6e6e2bd rename GuidedStorageTarget* 'capabilities' attribute to 'allowed' 2023-06-13 09:54:14 +12:00
Michael Hudson-Doyle 7e043a0950
Merge pull request #1693 from mwhudson/possible-to-targets
rename GuidedStorageResponseV2.possible to targets
2023-06-13 09:53:02 +12:00
Michael Hudson-Doyle 6c0ea12857
Merge pull request #1691 from mwhudson/flag-reset-partition
set "mstfres" flag on reset partition
2023-06-13 09:52:51 +12:00
Michael Hudson-Doyle 760c41913b set "mstfres" flag on reset partition 2023-06-13 09:22:28 +12:00
Michael Hudson-Doyle 9ed9f4e469 update curtin and adapt to API change 2023-06-13 09:22:24 +12:00
Michael Hudson-Doyle e2bc77b706
Merge pull request #1692 from mwhudson/ignore-bad-systems
log and ignore systems (in the snapd sense) we cannot install
2023-06-13 08:22:57 +12:00
Dan Bungert a26df84032
Merge pull request #1656 from kubiko/main
bin/console-conf-wrapper: prefer use of snapd/modeenv
2023-06-12 14:08:13 -06:00
Dan Bungert 1e68336595 doc: update README
Clarify that doc is the go-forward folder.
2023-06-12 14:03:50 -06:00
Dan Bungert 9bbf1ac058
Merge pull request #1685 from s-makin/docs-RTD-setup
docs: add files for RTD setup
2023-06-12 13:55:59 -06:00
Michael Hudson-Doyle 98bfb066b7 rename GuidedStorageResponseV2.possible to targets
Fairly soon v2/guided will return information about guided targets that
are not, in fact, possible.
2023-06-12 00:19:22 +12:00
Michael Hudson-Doyle 1fa3d3065e log and ignore systems (in the snapd sense) we cannot install
These errors are really errors in how the ISO is constructed, so logging
and ignoring seems more appropriate, compared to say encryption being
unavailable because the TPM is in lockout mode.
2023-06-09 14:51:47 +12:00
Michael Hudson-Doyle 211ee4e7b5
Merge pull request #1686 from mwhudson/recovery-part
allow creation and population of a recovery partition via autoinstall
2023-06-09 09:33:57 +12:00
Dan Bungert 3ac413e88b
Merge pull request #1689 from dbungert/zfs-autoinstall
zfs autoinstall
2023-06-08 12:24:38 -06:00
Dan Bungert 0e1da11c36 filesystem: allow zpool to satisfy mount 2023-06-08 12:06:45 -06:00
Dan Bungert 895f6a6384 filesystem: handle zpool export 2023-06-08 12:06:45 -06:00
Dan Bungert 7e74184fdc filesystem: add zfs/zpool fsobjs 2023-06-08 12:06:45 -06:00
Dan Bungert 50c7ff3d36 shutdown: add pre-shutdown pubsub channel 2023-06-08 12:06:45 -06:00
Dan Bungert c0741ab715 examples: autoinstalls showing zfs root
Add example autoinstalls.  Include several necessary steps for
everything to go well that will be moved out of the autoinstall in
following PRs.
2023-06-08 12:06:33 -06:00
Olivier Gayot aec441d9e9 ubuntu-drivers: by default in dry-run, consider that drivers are available
We only search for drivers if search_drivers is enabled in the source
screen. When testing in dry-run mode, we need to check the
search_drivers checkbox AND remember to pass the has-drivers debug flag.
I think it makes sense to consider drivers available by default in
dry-run mode.

This also means that OEM meta-packages are available by default (and
_should_ be installed automatically) in dry-run now.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-06-08 15:34:08 +02:00
Olivier Gayot e657b7e0e7 ubuntu-drivers: add method to list OEM meta-packages
The ubuntu_drivers.list_drivers() method currently returns names of
drivers + name of OEM meta-packages.

We now define a new method to be used for the OEM meta-packages only.

For now, the has-drivers, no-drivers, run-drivers debug flags affect the
presence of the OEM meta-packages as well. Going forward, we should
define dry-run directives controlling drivers & OEM independently.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-06-08 15:33:55 +02:00
Michael Hudson-Doyle 0e043679f4 stop passing source to every curtin step 2023-06-08 13:10:16 +12:00
Michael Hudson-Doyle c85ad513ec handle spaces in curtin step names better 2023-06-08 12:43:21 +12:00
Michael Hudson-Doyle 9b7a395347 skip symlinks when populating rp 2023-06-08 12:43:21 +12:00
Michael Hudson-Doyle 16ff550a2c update curtin 2023-06-08 12:43:18 +12:00
Ondrej Kubik f55f2fc94a bin/console-conf-wrapper: prefer use of snapd/modeenv when determining snapd mode
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2023-06-08 00:19:11 +01:00
Michael Hudson-Doyle e59e4e7c7a copy /cdrom to the reset partition, if configured 2023-06-08 10:57:14 +12:00
Michael Hudson-Doyle c9be41c227 add an async contextmanager to temporarily mount a device 2023-06-08 10:57:14 +12:00
Michael Hudson-Doyle 285a44d54f have Mounter.mount create a tmpdir mountpoint if none is passed 2023-06-08 10:57:14 +12:00
Michael Hudson-Doyle 0dca036101 allow an autoinstall file to request creation of a recovery partition 2023-06-08 10:57:11 +12:00
Olivier Gayot 919ca5ebd4
Merge pull request #1688 from ogayot/fix-list-drivers
drivers: fix empty list of drivers shown when it has not yet been retrieved
2023-06-07 17:39:13 +02:00
Olivier Gayot 1f9d824e46 drivers: fix empty list of drivers shown when it has not yet been retrieved
The /drivers GET endpoint is supposed to have {"drivers": null} when the
list of drivers has not (yes) been retrieved.

However, this behavior got broken by the following patch:

 66c82b322 drivers: query again list of drivers if the source variant changes

.. which resets the drivers variable to an empty list when querying the
list of drivers (this happens automatically when the user submits on the
source screen).

Therefore, instead of getting {"drivers": null}, we would get
{"drivers": []} which has a different meaning.

The patch also incorrectly declared the drivers variable in the
initializer (not taking None into account). The variable was actually
already declared as a class variable with the right type.

Fixed by resetting the variable to None when re-querying the list of
drivers and dropped the class variable in favor of the instance variable
(with the right type this time).

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-06-07 17:05:16 +02:00
Sally Makin 8b16c25363 Add README.md and rename folder 2023-06-07 10:14:31 +01:00
Dan Bungert 607eb80bdc
Merge pull request #1682 from dbungert/interactive-sections-api
meta: add interactive_sections endpoint
2023-06-01 12:56:26 -06:00
Dan Bungert f76a648fc2 meta: interactive-sections API test 2023-06-01 12:27:42 -06:00
Olivier Gayot 5924509127
Merge pull request #1683 from ogayot/mypy-diff-add-local-script
scripts: add script to run mypy and compare with output in another revision
2023-06-01 09:57:18 +02:00
Olivier Gayot 0db2da32ec
Merge pull request #1668 from ogayot/parallel-probert
Run probert probes in parallel - resulting in faster block probing
2023-06-01 09:24:59 +02:00
Olivier Gayot a13b2d6f46 mirror: add a bunch of assert statements to make mypy happy
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-06-01 09:24:05 +02:00
Olivier Gayot 3d1ea39e20 scripts: add script to run mypy and compare with output in another revision
The script can be invoked in different ways:

Run mypy in the current working directory and display the output:

 $ scripts/run-mypy.py

Run mypy in a clean copy of the HEAD revision:

 $ scripts/run-mypy.py --checkout-head

Run mypy in the current working directory and compare the result with
another revision (here main):

 $ scripts/run-mypy.py --diff-against main

Run mypy in a clean copy of the HEAD revision and compare with another
revision (here main):

 $ scripts/run-mypy.py --diff-against main --checkout-head

The produced result might be slightly different from what the CI does
because it also clones checks out curtin and probert (at the right
revision). This is something we might want to do in the CI as well.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-06-01 09:24:05 +02:00
Dan Bungert 266fb4a65b meta: handle None in interactive-sections API 2023-05-31 12:59:47 -06:00
Dan Bungert 74e19903c7 meta: expand interactive-sections: ['*'] in API 2023-05-30 17:34:08 -06:00
Dan Bungert e4c94780b6 meta: add interactive_sections endpoint
A feature request for Desktop was to add the ability to retrieve, all at
once, the raw interactive-sections value from autoinstall.
2023-05-30 17:34:08 -06:00
Dan Bungert 7e41eee464
Merge pull request #1580 from acres-com-au/fix-storage-path-match
Fix storage 'path' matcher doc & add new matchers to do what 'path' claimed to
2023-05-30 16:19:22 -06:00
Sally Makin e90d85e78c docs: add files for RTD setup
- Add docs directory to keep files together
- Add files necessary for RTD
- Add style sheets for "Ubuntu" style
- Add Diataxis outline and framework
2023-05-26 16:58:16 +01:00