Commit Graph

3946 Commits

Author SHA1 Message Date
Dan Bungert ee38a4506f deps: +build-essential 2021-08-10 13:14:08 -06:00
Dan Bungert cd05295db6 make: fix install_deps order
Getting the apt packages needs to be first, as processing probert is
more than a trivial git clone and needs some of those apt packages.
Drop probert as a requirement since it's redundant with the git
checkout.
2021-08-10 13:14:08 -06:00
Michael Hudson-Doyle 1875dcf064
Merge pull request #1024 from dbungert/no-groovy
Remove groovy from CI image matrix
2021-08-10 10:42:32 +12:00
Michael Hudson-Doyle 629a8f0e18
Merge pull request #1023 from dbungert/has-bitlocker
Add /storage/has_bitlocker convenience API
2021-08-10 10:42:08 +12:00
Dan Bungert 7b066f24b6 Remove groovy from CI image matrix 2021-08-09 11:07:05 -06:00
Dan Bungert ffc4bbde0a runtests support - first API test, has_bitlocker 2021-08-09 10:41:54 -06:00
Dan Bungert a688b37a6f Add /storage/has_bitlocker convenience API 2021-08-09 10:41:54 -06:00
J-P Nurmi b2794ebfef
Specify a large keepalive timeout to help UDI stay connected (#1022) 2021-08-06 09:49:02 -06:00
J-P Nurmi 95e63b7bf6
Make install_deps depend on gitdeps (#1019)
The installer defines PYTHONPATH correspondingly to ensure correct
versions of curtin and probert.
2021-08-05 15:00:45 -06:00
Michael Hudson-Doyle f651a7c950
Merge pull request #1020 from mwhudson/slimy-update-curtin
have slimy-update-snap.sh update curtin in the snap too
2021-08-05 12:35:11 +12:00
Michael Hudson-Doyle 88384f0a98 have slimy-update-snap.sh update curtin in the snap too
Also tweak scripts/update-part.py to work better when switching
repositories.
2021-08-05 10:46:39 +12:00
Michael Hudson-Doyle 0bc2cf4a95
Merge pull request #1014 from dbungert/with-open
Convert a bare open() call to with open()
2021-08-04 14:43:22 +12:00
Michael Hudson-Doyle d41e83189b
Merge pull request #1018 from mwhudson/curtin-update
update curtin, you know the drill
2021-08-04 13:18:41 +12:00
Michael Hudson-Doyle 31cceabba9 update curtin, you know the drill 2021-08-04 12:51:49 +12:00
Michael Hudson-Doyle c940378138
Merge pull request #1017 from mwhudson/fix-partitioning-existing-raid
fix adding a partition to an existing raid
2021-08-04 10:30:54 +12:00
Michael Hudson-Doyle 3152e5ce13 fix adding a partition to an existing raid
found this by mistake by accident when trying to test something else...
2021-08-03 14:09:38 +12:00
Michael Hudson-Doyle 5d566aebe0
Merge pull request #1016 from dbungert/probert-bitlocker
Update probert for bitlocker changes
2021-08-03 13:24:27 +12:00
Dan Bungert 9d3c156686 Update probert for bitlocker changes 2021-08-02 19:02:09 -06:00
Michael Hudson-Doyle fae91a0ce7
Merge pull request #1013 from mwhudson/curtin-update
update curtin to get raid, zipl config, unmounting fixes
2021-08-03 12:46:55 +12:00
Michael Hudson-Doyle e973b87b92 grab another 2 curtin commits 2021-08-03 12:30:23 +12:00
Michael Hudson-Doyle 81e8c89a81
Merge pull request #1015 from dbungert/fr-1183-bitlocker-detection
Add probert output for win10 & bitlocker (FR-1183)
2021-08-03 11:59:51 +12:00
Dan Bungert 0aa5e91670 Add probert output for win10 & bitlocker 2021-08-02 15:04:07 -06:00
Dan Bungert 18a00153bd Convert a bare open() call to with open() 2021-08-02 11:53:13 -06:00
Michael Hudson-Doyle ae7af3ed4c update curtin to get raid, zipl config, unmounting fixes 2021-08-02 14:39:29 +12:00
Michael Hudson-Doyle ad18b58f4e
Merge pull request #1011 from mwhudson/curtin-update
update curtin
2021-07-26 09:24:10 +12:00
Michael Hudson-Doyle c340c6db22 update curtin
this brings in the unmounting fix and lets PYTHON be set in the
environment to choose which python to use
2021-07-23 12:26:49 +12:00
Dan Bungert 2940bfeb76
In dryrun, run simulated curtin with same python (#1009) 2021-07-21 10:42:24 -06:00
Michael Hudson-Doyle d423d71f2a
Merge pull request #1008 from mwhudson/use-livefs-editor
use livefs-editor to make customized isos
2021-07-21 12:10:11 +12:00
Michael Hudson-Doyle 9e0f11c02e update quick-test-this-branch.sh too 2021-07-21 10:42:25 +12:00
Michael Hudson-Doyle 9a4871f416 use livefs-editor to make customized isos
a while ago I rewrote inject-subiquity-snap in python, generalized it
and put it at https://github.com/mwhudson/livefs-editor.  TBH, it's
always been better than the shell version but now there's a reason to
switch to it: the impish live server ISO use layers, which the current
shell scripts do not support and livefs-editor now does.
2021-07-19 14:44:27 +12:00
Michael Hudson-Doyle c284ff140e
Merge pull request #1007 from dbungert/lp-1936310-get
timezone: dryrun, GET with less side effects
2021-07-16 09:30:13 +12:00
Dan Bungert 7808ccac84 GET /timezone no longer sets to system
The original design for timezone intentionally set the system timezone
based on geoip results, before a POST /timezone.  After the feedback on
LP: #1936310 I'm having second thoughts on that and wish for GET to be
a simple informational query with no such side effects.
2021-07-15 13:02:22 -06:00
Dan Bungert c79aa602dc Proper fix for setting timezone inappropriately in dryrun
Reenable integration test for set of timezone.
Don't set it while in dryrun.
2021-07-15 10:49:32 -06:00
Michael Hudson-Doyle 545d77eeab
Merge pull request #1006 from mwhudson/lp-1936248
fix "make check" on uefi systems
2021-07-15 13:18:46 +12:00
Michael Hudson-Doyle 56670da2db
Merge pull request #1005 from dbungert/tz-test-workaround
Workaround dryrun test actually setting timezone
2021-07-15 13:18:31 +12:00
Michael Hudson-Doyle f7e4b7ae3c
Merge pull request #1004 from dbungert/machine-config-not-found
Verify that machine-config arg is a file
2021-07-15 13:06:30 +12:00
Dan Bungert 4ed4e51a2e Workaround dryrun test actually setting timezone
Until a proper fix can be finished, remove the set of timezone from the
integration tests.
2021-07-14 19:02:42 -06:00
Michael Hudson-Doyle 18c651343d fix "make check" on uefi systems
an ESP can be on a RAID now. Also always run the integration tests in UEFI mode.
2021-07-15 08:49:10 +10:00
Dan Bungert ada889328d Verify that machine-config arg is a file
If machine-config is pointed to a non-existant file, dryrun can kind of
unhelpfully hang without much indication that anything is happening.
2021-07-14 16:40:22 -06:00
Dan Bungert 9f883ff0f7
Add missing configure on timezone POST (#1003) 2021-07-13 19:36:10 -06:00
Michael Hudson-Doyle cad7deb883
Merge pull request #1001 from dbungert/subiquity-root
Lookup resources from SUBIQUITY_ROOT
2021-07-14 12:22:06 +12:00
Dan Bungert 9f1478cd96
Add new schema comparison, robust to timezone changes (#1002)
* Add new schema comparison, robust to timezone changes

Improve the schema comparison - mostly I'm worried about the
non-timezone items, spot check the timezone list for a few that should
be there.

* Incorporate feedback - pop
2021-07-13 18:13:46 -06:00
Michael Hudson-Doyle ab97297009 set environment variables in snapcraft.yaml not wrappers 2021-07-14 12:02:45 +12:00
Dan Bungert 1d770ef2ef Switch to lookup from SNAP to SUBIQUITY_ROOT
Subquity looking up various resources from SNAP is causing problems for
ubuntu-desktop-installer.  Hide this detail away with SUBIQUITY_ROOT so
that other clients don't have to do magic with the SNAP env variable.
2021-07-13 16:15:37 -06:00
Dan Bungert 4cbfb7f18f
Abstract resource file lookup relative to SNAP (#998)
* Abstract resource file lookup relative to SNAP

Using SNAP to find the resource files is a bit of an odd requirement for
non-subiquity clients.  Start abstracting that away so it's easier to
change later.

Also move loadkeys to lookup from this, since the previous solution is
still a problem for ubuntu-desktop-installer.

* Move loadkeys / configure-apt to bin

loadkeys / configure-apt are in usr/bin only when we specially put them
there by way of snapcraft, which makes things a little harder on
non-subiquity clients.  Move them to bin, which is to say don't have
snapcraft put them in usr/bin.
2021-07-13 16:14:31 -06:00
Dan Bungert 502c1193fd
Temp disable schema check on Impish (#1000)
Impish is adding more timezones, which is cool, but breaks my schema
check, so disable this there for now and come back later with a better
answer.

Also schema check seems to need curtin.
2021-07-13 11:17:55 -06:00
Dan Bungert 40945f1823
TimeZone: autoinstall and API (FR-1184) (#986)
* TimeZone: autoinstall and API

Add support for Get/Set timezone methods.  Get means that we inquire
with GeoIP as to which timezone is suggested.  Non-availability of
GeoIP, or a previous explicit Set, means that we return the system
timezone.  Set of timezone by Post results in set of the live system
timzeone, and queuing a set of the target system by way of cloud-init.

* Add clarifying comment about _request.
2021-07-13 06:25:03 -06:00
Michael Hudson-Doyle c31e2a060a
Merge pull request #997 from mwhudson/imsm
support for pre-existing vroc containers and volumes
2021-07-07 08:48:18 +12:00
Michael Hudson-Doyle aac56ae776 update curtin to get some raid container fixes 2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle 916ee7516e add an imsm integration test 2021-07-07 08:40:33 +12:00