Commit Graph

4290 Commits

Author SHA1 Message Date
Dan Bungert 9bee715156 storage/v2: show disk path 2021-10-06 18:44:22 -06:00
Dan Bungert b6ed0595ef storage/v2: tests for edit in place 2021-10-06 18:44:22 -06:00
Dan Bungert ce89e99a64 storage/v2: provide wipe info 2021-10-06 18:44:22 -06:00
Dan Bungert ddbdbb869f storage/v2: reuse existing partitions
Add test for flow of reusing existing partitions.  Certain operations
are allowed, such as formatting and using an existing partition, or
mounting a partition without formatting it.  Creating new in free space
is off limits, as is deleting a partition (even if it is just about to
be added again).
2021-10-06 18:44:22 -06:00
Dan Bungert cf31bf9606 storage/v2: less invasive edit partition 2021-10-06 18:44:22 -06:00
Dan Bungert 1d2aa890ad delete_partition: allow when disk preserve False
If disk.preserve is false, a delete partition may proceed.
If we're actively removing partitions from a disk before clearing it,
that's fine as well even though the preserve bit may yet be True.
2021-10-06 18:44:22 -06:00
Dan Bungert 6d5e9d047f storage/v2: add preserve 2021-10-06 18:44:22 -06:00
Dan Bungert 022724b694 storage/v2: add free_for_partitions at DISK level
This is the size, adjusted downward for GPT overhead and space consumed
by partitions.
2021-10-06 18:44:22 -06:00
Dan Bungert 3eaecb69c0 storage/v2: testing, grub 2021-10-06 18:44:22 -06:00
Dan Bungert 7313ca3e9d storage/v2: test cleanup 2021-10-06 18:44:22 -06:00
Dan Bungert 81870995ab storage/v2: remove most V2 types
With the ability to send items with default values, we can simplify the
calling API and don't need to split out distinct types.
2021-10-06 18:44:22 -06:00
Dan Bungert aa10897802 storage/v2: api test cases for deserialize fixes 2021-10-06 18:44:22 -06:00
Dan Bungert 3b6b89c5d9 storage/v2: create api test 2021-10-06 18:44:22 -06:00
Dan Bungert 92500bf8c9 storage/v2: start using -1 for 'rest of disk' 2021-10-06 18:44:22 -06:00
Dan Bungert 69873d8ab2 storage/v2: test cleanup 2021-10-06 18:44:22 -06:00
Dan Bungert 7f22e91cb3 storage/v2: add api test 2021-10-06 18:44:22 -06:00
Dan Bungert e5286ad21a storage/v2: start adding v2 types 2021-10-06 18:44:22 -06:00
Dan Bungert f4e07e8aba storage/v2: reset 2021-10-06 18:44:22 -06:00
Dan Bungert f6c3eb8a43 storage/v2: delete_partition 2021-10-06 18:44:22 -06:00
Dan Bungert 010fdecd2c storage/v2: add guided equivalent 2021-10-06 18:44:22 -06:00
Dan Bungert 84b0df3f8f storage/v2: add/edit move args to request body 2021-10-06 18:21:01 -06:00
Dan Bungert 73b02e379b storage/v2: post to mark configured 2021-10-06 18:21:01 -06:00
Dan Bungert d6fc50b131 storage/v2: edit 2021-10-06 18:21:01 -06:00
Dan Bungert 4edff574d9 storage/v2: add_partition 2021-10-06 18:21:01 -06:00
Dan Bungert dcb8380a82 storage/v2: get, reset 2021-10-06 18:21:01 -06:00
Dan Bungert e7276d3fa8
Merge pull request #1069 from mwhudson/lp-1939176
only do x-override-status: confirm games for first request for a screen
2021-10-06 17:34:50 -06:00
Michael Hudson-Doyle eb35a2c69e use a ContextVar to know when a request is part of making a view
we can do this now that we are based on core20
2021-10-06 17:30:47 -06:00
Michael Hudson-Doyle 755436ea45 only do x-override-status: confirm games for first request for a screen
this uses a rather unsatisfactory way of identifying the first request for a screen.

for https://bugs.launchpad.net/subiquity/+bug/1939176
2021-10-06 17:30:47 -06: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 5c0e64e78a system_setup: address the run_command fail issue 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 225cb1bd37 system_setup: fixes for after rebasing
1. add extra logs
2. improve the answers file
3. await the self.configured in wslconf API
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 a211689e08 system_setup: update client_variant to variant 2021-10-06 22:13:15 +08:00
Patrick Wu 0a0c53a61b system_setup: move all write file actions to configure controller
This completes 5. Move all “Commits/Write to file” in the configure controller.
2021-10-06 22:13:15 +08:00
Michael Hudson-Doyle d647c181f6
Merge pull request #1083 from dbungert/github-no-bionic
workflows: drop bionic
2021-10-06 13:59:38 +13:00
Dan Bungert 2886a491b9 workflows: drop bionic 2021-10-05 18:39:00 -06:00
Dan Bungert e14febd709
Merge pull request #1082 from dbungert/pytest-3
unittest: use pytest-3
2021-10-05 17:42:22 -06:00
Dan Bungert b757b0f972 unittest: use pytest-3
pytest-3 lets us set exclude directories, which is helpful with the
desired API testing to seperate them from 'unittest discover' so that we
can keep unit test runtime short.
2021-10-05 17:36:54 -06:00
Michael Hudson-Doyle 115e4cdf65
Merge pull request #1081 from dbungert/slimy-core20
slimy: python 3.8
2021-10-06 12:00:14 +13:00
Dan Bungert 64d190573d
Merge pull request #1077 from mwhudson/install-from-langpack-squashfs
install from squashfs with langpack preinstalled if present
2021-10-05 16:43:07 -06:00
Dan Bungert 8092b3405b slimy: python 3.8 2021-10-05 12:27:47 -06:00
Michael Hudson-Doyle e72022f0a1 install from squashfs with langpack preinstalled if present 2021-10-05 11:42:02 -06:00
Didier Roche f72d581692
Merge pull request #1080 from dbungert/ci-impish-workaround
workflows: avoid impish failing the rest of CI check
2021-10-05 18:33:03 +02:00
Dan Bungert 103f3876b8 workflows: fail-fast false to let other builds run
Use fail-fast: false to let the non-failing matrix builds continue to
run.  Right now impish is timing out early in the process and we can't
see the results for the others.

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-10-05 10:27:08 -06:00
Didier Roche 15f9e9201c
Merge pull request #1073 from canonical/wsl_oobe_deeng_41
DEENG-41 - Update TUI command line name and remove unneeded options.
2021-10-05 09:06:20 +02:00
Michael Hudson-Doyle 77af962ab3
Merge pull request #1040 from lambda-propaganda/patch-1
Fix advancing from snap list screen before snaps have loaded
2021-10-05 17:13:09 +13:00