Commit Graph

6171 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 66823be3f7 oem: check variant before waiting for apt configuration
because if we add support for variant == 'core' (spoilers!), then apt
may never be configured.
2023-07-18 22:27:30 +12:00
Michael Hudson-Doyle 9eb7b24c9c rejig answers support to not call confirm_install before storage is configured 2023-07-18 22:27:30 +12:00
Michael Hudson-Doyle 00102ec258 wait for subscribers to run when broadcasting INSTALL_CONFIRMED 2023-07-18 16:03:08 +12:00
Michael Hudson-Doyle 8e51aca19c maybe fix CI in actions 2023-07-18 13:31:01 +12:00
Michael Hudson-Doyle cf3de7fb25 add tests for create_rp_boot_entry
and fix the bugs it uncovered, yay
2023-07-18 13:25:32 +12:00
Michael Hudson-Doyle c991568c8b more review suggestions: use .format, add header 2023-07-18 12:42:57 +12:00
Michael Hudson-Doyle 6d67a2dd6f
Apply suggestions from @ogayot
Co-authored-by: Olivier Gayot <olivier.gayot@sigexec.com>
2023-07-18 12:38:13 +12:00
Dan Bungert 6d54ac2977 filesystem: zfs autoinstall 2023-07-17 18:14:45 -06:00
Dan Bungert 13890db253 filesystem: add basic guided zfs 2023-07-17 17:36:33 -06:00
Dan Bungert 0022025e89 filesystem: zfs/zpool api object support 2023-07-17 17:35:06 -06:00
Dan Bungert 0cc4fdf348 filesystem: simpler fstype from mount 2023-07-17 17:35:01 -06:00
Dan Bungert 4d28f305f4 filesystem: zpool type improvements 2023-07-17 17:34:57 -06:00
Dan Bungert 4e1a7b40c6 filesystem: add zfs capability flag 2023-07-17 17:20:03 -06:00
Dan Bungert f82067c50e
Merge pull request #1698 from dbungert/zfs-swap
zfs: no swapfile
2023-07-17 17:19:26 -06:00
Michael Hudson-Doyle 66b1c0f1f2
Merge pull request #1709 from mwhudson/guided-screen-rewrite
rewrite guided disk selection to be more general
2023-07-18 11:17:59 +12:00
Dan Bungert 0afda56696 filesystem: ask curtin about swapfiles
Curtin and Subiquity both have swap file decision logic, let curtin be
the source of truth.  We can tweak the desired behavior in curtin.
2023-07-17 15:42:37 -06:00
Dan Bungert 3b0742e5fe filesystem: unittest for existing swap behavior 2023-07-17 15:42:37 -06:00
Michael Hudson-Doyle 7c853af08f
Merge pull request #1715 from mwhudson/rework-client-model-serialization
specialize how fs model objects are sent across API
2023-07-18 09:05:01 +12:00
Michael Hudson-Doyle 911c357d42
Merge pull request #1719 from mwhudson/reset-only-late-commands
fix using late-commands and reset-partition-only at the same time
2023-07-18 09:02:32 +12:00
Dan Bungert 273999c8b0 filesystem: rename should_add_swapfile
Will be used by the controller to make a swap partition decision.
2023-07-17 14:53:00 -06:00
Dan Bungert d1e716fe8d
Merge pull request #1536 from ITJamie/layout_grub_config
load grub config from ai_data
2023-07-17 14:13:30 -06:00
Dan Bungert 7af51a6fe3 storage: swap + layout 2023-07-17 13:47:08 -06:00
Dan Bungert 50cc2085a7 storage: test for grub + layout 2023-07-17 13:47:08 -06:00
Jamie Murphy cdd2a95b5a load grub config from ai_data
re: 1952926
2023-07-17 13:47:08 -06:00
Dan Bungert 872f5cd25b
Merge pull request #1721 from dbungert/runtests-fix-reset-only
runtests: fix "unary operator expected" warning
2023-07-17 10:56:25 -06:00
Dan Bungert 7aca48c5ec
Merge pull request #1722 from dbungert/contributing
doc: create CONTRIBUTING starting point
2023-07-17 10:51:23 -06:00
Dan Bungert 3266a98a1c
Merge pull request #1717 from lindhe/consistent-bools-in-reference
Use true/false instead of yes/no for bools
2023-07-17 10:23:29 -06:00
Dan Bungert e3253389cc doc: create CONTRIBUTING starting point 2023-07-17 10:21:22 -06:00
Dan Bungert 832750297d runtests: fix "unary operator expected" warning 2023-07-17 10:00:55 -06:00
Olivier Gayot 0d989ef2d7
Merge pull request #1718 from lindhe/fix-typo-minimized
Fix typo in reference: minimized --> minimal
2023-07-17 10:32:09 +02:00
Michael Hudson-Doyle acbc26bb36 configure a UEFI boot entry to boot into a reset partition if present 2023-07-17 13:58:55 +12:00
Michael Hudson-Doyle 1f01efa4fb configure a grub menuentry to boot into a reset partition if present 2023-07-17 13:57:49 +12:00
Michael Hudson-Doyle b23d553220 fix using late-commands and reset-partition-only at the same time 2023-07-17 13:54:57 +12:00
Dan Bungert 7476600021
Merge pull request #1708 from dbungert/docs-autoinstall-tutorial
docs: autoinstall tutorial
2023-07-13 16:35:52 -06:00
Dan Bungert 0c429010a5
doc: editorial improvements to autoinstall tutorial
Co-authored-by: Sally <sally.makin@canonical.com>
2023-07-13 16:02:21 -06:00
Andreas Lindhé 2fcaa0e9e8 Fix typo in reference: minimized --> minimal
There is no such thing as `ubuntu-server-minimized`.
It should be `ubuntu-server-minimal`.

See for example here:
f8bf1105bf/examples/sources/install.yaml (L4)
2023-07-13 15:15:19 +02:00
Michael Hudson-Doyle f8bf1105bf
Merge pull request #1716 from mwhudson/refactor-install-package-from-pool
factor out code to install a package from the pool in the live session
2023-07-13 11:47:36 +12:00
Michael Hudson-Doyle cb1e760207 add docstring to PackageInstaller 2023-07-13 11:37:43 +12:00
Andreas Lindhé d604a2156f Use true/false instead of yes/no for bools
Before, the reference documentation was inconsistent with boolean
values. It sometimes used true/false and other times yes/no.

This changes makes it so that the reference documentation is
consistently using true/false.
2023-07-12 13:41:12 +02:00
Michael Hudson-Doyle 743c350b1f factor out code to install a package from the pool in the live session 2023-07-12 13:38:37 +12:00
Michael Hudson-Doyle 02e5bc3c17 rename WLANSupportInstallState to PackageInstallState 2023-07-12 13:03:29 +12:00
Michael Hudson-Doyle 00773f6517 stop sending all block device information across the API 2023-07-12 10:46:15 +12:00
Michael Hudson-Doyle 394c11782a use ._info in preference to poking in probe_data 2023-07-12 10:46:15 +12:00
Michael Hudson-Doyle 4eda684140 send _info attributes across the API 2023-07-12 10:46:12 +12:00
Michael Hudson-Doyle ea21e17bb6 add a way to have model object attributes serialized for api
i.e. so they are serialized for the client/server communication but not
when rendering the objects for curtin.
2023-07-12 10:44:04 +12:00
Michael Hudson-Doyle 9ad2771f91 attach StorageInfo objects to Partition and Raid instances 2023-07-12 10:42:36 +12:00
Michael Hudson-Doyle 35924d465c refactor ok_for_xxx tests a bit 2023-07-12 10:42:36 +12:00
Michael Hudson-Doyle 5af40f0b28
Merge pull request #1710 from mwhudson/annotate-fsmodel
add annotations to storage model objects
2023-07-12 10:41:57 +12:00
Michael Hudson-Doyle 097982fa82
Merge pull request #1714 from mwhudson/update-probert
Update probert
2023-07-12 09:29:36 +12:00
Dan Bungert b6e45ce18b
Merge pull request #1711 from s-makin/RTD-config-file
Add readthedocs config file
2023-07-11 15:22:58 -06:00