Commit Graph

3900 Commits

Author SHA1 Message Date
Dan Bungert 86b087eb4b
Add client_variant (#976)
We need to know which controllers to block on, and which are optional.
The mechanism, for now, is this client_variant functionality, which adds
a mandatory early API call that the client shall use.  This allows
controllers to say that they are only required to be configured for
certain install clients, such as is necessary for timezone (which is
needed on desktop, and optional on server).
2021-06-08 16:06:32 -06:00
Michael Hudson-Doyle 2da12b66e1
Merge pull request #967 from mwhudson/render-wifi-config-separately
write any wifi config to a file only readable by root
2021-06-09 10:02:02 +12:00
Michael Hudson-Doyle 861295b192 add a comment about why we only split out the wifi config 2021-06-09 09:57:25 +12:00
Michael Hudson-Doyle 9c93f2b0e1 write any wifi config to a file only readable by root 2021-06-08 10:00:44 +12:00
Michael Hudson-Doyle 2c7ec18aa8
Merge pull request #973 from mwhudson/fs-boot-reorg
make booting related queries singledispatch methods
2021-06-08 08:49:28 +12:00
Dan Bungert 1d42f897a1
test-in-lxd: remove privileged container usage (#974)
* test-in-lxd: remove privileged container usage

* Don't assume certain home directory name

* Try enabling groovy
2021-06-07 14:36:37 -06:00
Michael Hudson-Doyle 15f995096e
Merge pull request #963 from mwhudson/wlan-fixes
subiquitycore wlan fixes
2021-06-04 15:43:00 +12:00
Michael Hudson-Doyle f47acf2932 one more small refactor 2021-06-04 14:57:39 +12:00
Michael Hudson-Doyle fad7f2ddda move is_bootloader_partition to standalone function 2021-06-04 14:54:45 +12:00
Michael Hudson-Doyle 15b8bee1fb make is_esp a singledispatch 2021-06-04 14:49:37 +12:00
Michael Hudson-Doyle faea101e12 try to refactor some boot device code in preparation for imsm 2021-06-04 09:26:51 +12:00
Michael Hudson-Doyle 8de00d30fa
Merge pull request #970 from dbungert/example-data-cleanup
Cleanup example data
2021-06-03 12:31:49 +12:00
Michael Hudson-Doyle 187b09fd45
Merge pull request #965 from mwhudson/wlan-methods-api
add wlan-related methods to API
2021-06-03 12:30:18 +12:00
Michael Hudson-Doyle 4c03823b06 update probert to version that has mark-wlan-earlier merged 2021-06-03 11:29:49 +12:00
Michael Hudson-Doyle 7b4a7b235c
Merge pull request #968 from mwhudson/kernel-controller
move kernel package selection to its own controller/model
2021-06-03 11:24:27 +12:00
Michael Hudson-Doyle 8e1e1439ae
Merge pull request #966 from mwhudson/fs-labels-reorg
move storage description functionality to singledispatch methods
2021-06-03 11:23:50 +12:00
Dan Bungert 2da973579e Cleanup example data
These examples were crashing dryrun if supplied as a machineconfig due
to the missing blockdev.
2021-06-02 14:54:43 -06:00
Dan Bungert 910e6f9bad
Typo fix 2021-06-02 09:09:19 -06:00
Dan Bungert 49ebdc0300 Merge branch 'main' into fs-labels-reorg 2021-06-02 09:03:16 -06:00
Dan Bungert 1a91ee7a01
github action: s/groovy/impish (#969) 2021-06-02 08:03:16 -06:00
Michael Hudson-Doyle c74b3ccf60 move label tests closer to implementation 2021-06-02 15:20:19 +12:00
Michael Hudson-Doyle a33682f101 replace bios_grub label with (slightly) English words 2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle faa9473a25 mark a couple more strings as translatable
even if a translation being provided seems a bit unlikely
2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle 957fd90699 migrate for_client to singledispatch 2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle ef81639175 add docstrings to generic functions 2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle f68c80cf7d kill off short_label as separate function 2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle 3441e5db5c migrate desc and short_label to singledispatch 2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle 4ef222ee03 migrate label to singledispatch 2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle 7f67f65875 migrate usage_labels to singledispatch 2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle 55191bafb5 make annotations a functools.singledispatch 2021-06-02 15:20:18 +12:00
Michael Hudson-Doyle 9564f9ae52 move kernel package selection to its own controller/model 2021-06-02 13:58:53 +12:00
Michael Hudson-Doyle 5b7409750e
Merge pull request #964 from mwhudson/network-error-reports
handle some networking errors better
2021-06-02 13:44:26 +12:00
Michael Hudson-Doyle 8848db87cd change log.error to log.exception when handling a network subsriber call failing 2021-06-02 13:23:44 +12:00
Michael Hudson-Doyle 65a3290a7d add wlan-related methods to API
nothing will call these yet because we are still hiding wlan nics in the
model but it is all simple enough
2021-06-02 13:18:18 +12:00
Michael Hudson-Doyle 6aaa0b70d9
Merge pull request #962 from mwhudson/fs-action-reorg
move DeviceAction stuff to its own file
2021-06-02 13:15:16 +12:00
Michael Hudson-Doyle 1e294a9915 do not crash the server when a call to a network subscriber fails 2021-06-02 13:09:14 +12:00
Michael Hudson-Doyle 4dd7922a80 generate an error report when a network subscription handler fails 2021-06-02 13:09:14 +12:00
Michael Hudson-Doyle c1e9b0a2d7 fix call to make_apport_report on apply_config failure 2021-06-02 13:09:14 +12:00
Michael Hudson-Doyle 47b2836aee pretend virtual wlan (i.e. mac80211_hwsim) devices are real
this allows their use for testing
2021-06-02 12:40:57 +12:00
Michael Hudson-Doyle d14fd35330 move "enabling wifi turns on dhcp4" behaviour to controller from view 2021-06-02 12:40:50 +12:00
Michael Hudson-Doyle 902c57f7f7 move start_scan error handling into controller
report errors via scan_state field
2021-06-02 12:28:44 +12:00
Michael Hudson-Doyle b84fa27752 call apply_config in controller set_wlan method 2021-06-02 12:28:44 +12:00
Michael Hudson-Doyle b046608a78 fix type annotations in network model types 2021-06-02 12:28:44 +12:00
Michael Hudson-Doyle 4850cee5ce NetworkConfigureWLANStretchy.update_link should only care about updates for its nic
this was very confusing to debug!
2021-06-02 12:28:44 +12:00
Michael Hudson-Doyle c325e76e9e fix the wlan view calls to controller methods to pass just the nic name 2021-06-02 12:28:42 +12:00
Michael Hudson-Doyle 7726c14d87 move action tests 2021-05-31 22:59:59 +12:00
Michael Hudson-Doyle b3e124d26f convert all "is this action possible on this device" code over to new style 2021-05-31 22:59:59 +12:00
Michael Hudson-Doyle 22bf1a0321 light refactor 2021-05-31 22:59:59 +12:00
Michael Hudson-Doyle a3588e8fa9 migrate can_EDIT functionality 2021-05-31 22:59:59 +12:00
Michael Hudson-Doyle 997897fa51 convert supported_actions method into a functools.singledispatch 2021-05-31 22:59:59 +12:00