Dan Bungert
111aefc54a
gaps: report as usable or not
2022-07-19 11:47:57 -06:00
Dan Bungert
8ad8610ffb
filesystem: unit test size and lvm checks
2022-07-19 11:47:57 -06:00
Dan Bungert
e9950df869
filesystem: guided unit test refactor
2022-07-19 11:47:57 -06:00
Dan Bungert
481400ce02
filesystem: expand some msdos ptable tests to vtoc
2022-07-19 11:47:57 -06:00
Dan Bungert
832caeda55
filesystem: renumber logicals on deletion
2022-07-19 11:47:57 -06:00
Dan Bungert
f0c23f659f
filesystem: tests for numbering logical partitions
2022-07-19 11:47:57 -06:00
Dan Bungert
396dca07b8
filesystem: more deliberate numbering for logicals
2022-07-19 11:47:57 -06:00
Dan Bungert
f872375265
filesystem: cleanup alignment data test
2022-07-19 11:47:57 -06:00
Dan Bungert
70e6814824
Merge pull request #1356 from dbungert/orig-config
...
filesystem: add orig_config API
2022-07-18 17:51:12 -06:00
Dan Bungert
f3859904a4
filesystem: add orig_config API
...
Clients may want a view of the unmodified disk configuration.
2022-07-18 17:02:10 -06:00
Michael Hudson-Doyle
ce42b946e5
Merge pull request #1355 from dbungert/workflow-no-impish
...
workflows: -impish
2022-07-19 09:13:47 +12:00
Dan Bungert
5bd940cb0a
workflows: -impish
2022-07-18 13:17:58 -06:00
Chad Smith
17408993f6
cloud_init_files: render a clean script to /etc/cloud/clean.d
...
To support golden image creation from the live installer,
provide cloud-init with /etc/cloud/clean.d/99-installer script.
This script will only be invoked when sudo cloud-init clean is
run, which is typically only used when trying to create customized
golden images.
2022-07-16 01:55:46 +00:00
Chad Smith
ddaf48b334
models: subiquitycore.network.rendered_config_paths to list generated files
2022-07-14 21:48:51 -06:00
Chad Smith
a531ade6c3
file_util: generate_timestamped_header function to any subiquity written files
2022-07-14 21:48:51 -06:00
Michael Hudson-Doyle
d9ad8134e9
Merge pull request #1351 from mwhudson/ignore-running
...
Pass ignore-running: true when refreshing ourself
2022-07-15 12:41:18 +12:00
Michael Hudson-Doyle
942e5f5f1b
set _ORIG variables in environment for 'subiquity' app
...
this so orig_environ works when connecting via SSH
2022-07-15 12:13:37 +12:00
Michael Hudson-Doyle
135a870509
restart into cleaned environment
2022-07-15 11:21:42 +12:00
Michael Hudson-Doyle
a9520b7100
Pass ignore-running: true when refreshing ourself
...
Otherwise the refresh awareness blocks refresh when you are connected
via SSH.
2022-07-14 12:11:37 +12:00
Dan Bungert
d514221101
Merge pull request #1350 from dbungert/lp-1974077
...
client: fix autoinstall crash on endpoint_name
2022-07-13 15:22:09 -06:00
Dan Bungert
44464480a6
client: fix autoinstall crash on endpoint_name
...
Can trigger a crash today with autoinstall
`interactive-sections: [storage]`
Not all controllers have an endpoint_name defined.
2022-07-13 12:34:09 -06:00
Dan Bungert
05fdc80c34
Merge pull request #1349 from dbungert/curtin-rev-gpt-fixes
...
curtin: update for gpt preservation fixes
2022-07-13 12:00:53 -06:00
Dan Bungert
7aec411396
curtin: update for gpt preservation fixes
2022-07-13 09:38:52 -06:00
Dan Bungert
cecca212f6
Merge pull request #1348 from dbungert/remove-deprecated-guided
...
filesystem: drop deprecated v2 guided
2022-07-12 15:11:46 -06:00
Dan Bungert
c3f7f43e18
filesystem: drop deprecated v2 guided
...
The old guided method used in v2 is now wholly replaced by the new,
multiple target type, counterpart.
2022-07-12 14:13:29 -06:00
Dan Bungert
aa59399d6c
Merge pull request #1346 from dbungert/fix-guided-resize-gap
...
guided resize: improve post-resize gap handling
2022-07-11 20:04:49 -06:00
Dan Bungert
a580fc7366
filesystem: add resize api test against logical
...
Exposed a calculation flaw in finding the gap offset, which was the
motivation for introducing gaps.after() to sidestep that calculation.
2022-07-11 18:17:24 -06:00
Dan Bungert
90e7bd8389
examples: threebuntu-on-msdos
...
3 Ubuntu installs, of various versions, on a MSDOS partition table.
Data courtesy of jp.nurmi@canonical.com .
2022-07-11 18:17:19 -06:00
Dan Bungert
0f3b94349b
filesystem: use_gap with gaps.after
2022-07-11 18:17:19 -06:00
Dan Bungert
76c708b951
gaps: add utility gaps.after
2022-07-11 11:51:13 -06:00
Dan Bungert
daddb0af5f
filesystem: remove debug artifact
2022-07-11 11:50:38 -06:00
Dan Bungert
8b5ee61483
Merge pull request #1345 from dbungert/more-lint
...
workflow: +kinetic for linter
2022-07-08 08:54:27 -06:00
Dan Bungert
d8f80d1e33
workflow: +kinetic for linter
...
Add a second linter container to also lint against the newer python.
2022-07-08 08:31:34 -06:00
Dan Bungert
c6078bd77c
Merge pull request #1344 from ogayot/lint-jammy
...
filesystem: fix use of f-string without placeholder
2022-07-08 07:55:57 -06:00
Olivier Gayot
a0b2e765ba
filesystem: fix use of f-string without placeholder
...
When running make lint with flake8 >= 4.0.0 (available in jammy), the
following error is reported:
subiquity/server/controllers/filesystem.py:158:33:
F541 f-string is missing placeholders
Github runs the lint job in a focal container, where only version 3.8.4
of flake8 is installed. F541 is not implemented in 3.8.4 so it does not
fail.
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-07-08 09:48:04 +02:00
Olivier Gayot
b2639c13d4
Merge pull request #1343 from ogayot/ubuntu-pro-subscription-screen
...
ubuntu-pro: add info about subscription in former services screen
2022-07-08 09:13:49 +02:00
Dan Bungert
bb8fd4dbd3
Merge pull request #1341 from dbungert/v2-guided-overhaul
...
filesystem: overhaul v2 guided
2022-07-07 08:02:39 -06:00
Dan Bungert
b74e53679c
boot: allow plans with None bootloader
2022-07-07 07:45:26 -06:00
Dan Bungert
b895fba66a
filesystem: api tests for v2 guided
2022-07-07 07:45:26 -06:00
Dan Bungert
4c4506ac37
filesystem: better BIOS tests
2022-07-07 07:45:26 -06:00
Dan Bungert
be4cd23ffe
filesystem: no guided UseGap when disk is empty
2022-07-07 07:45:26 -06:00
Dan Bungert
be805ffb36
filesystem: allow boot to resize a preserved part
2022-07-07 07:45:26 -06:00
Dan Bungert
1f3d36510f
filesystem: guided_method can take a gap
2022-07-07 07:41:04 -06:00
Dan Bungert
7a9e920de1
gaps: add within()
...
To simplify tracking of gap usage, allow looking up a gap based on a
preceeding, usually larger, gap.
2022-07-07 07:41:04 -06:00
Dan Bungert
5d5f9ca49e
filesystem: start new guided API POST
2022-07-07 07:31:12 -06:00
Dan Bungert
78f23153e5
filesystem: sort guided cases on available size
2022-07-07 07:31:12 -06:00
Dan Bungert
2f12610290
filesystem: add new guided API GET
2022-07-07 07:31:12 -06:00
Dan Bungert
1916f08342
filesystem: move v2 guided GET to deprecated
2022-07-07 07:23:10 -06:00
Dan Bungert
1ee323bb95
filesystem: get_guided_disks check_boot flag
2022-07-07 07:23:10 -06:00
Dan Bungert
6d403646b9
filesystem: extract guided disk enumeration
2022-07-07 07:23:10 -06:00