Commit Graph

3914 Commits

Author SHA1 Message Date
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
Michael Hudson-Doyle f5e8359226 do not offer components of imsm containers with volumes as guided options 2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle dfe36d7617 support imsm volumes as boot devices 2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle 7cfd5e42ab support display and some actions for imsm raid arrays and volumes 2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle 6be1289933 add examples/imsm.json 2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle 89664a2446
Merge pull request #991 from mwhudson/installdeps-commit
install curtin at commit specified in snapcraft.yaml for CI
2021-07-07 08:35:54 +12:00
Michael Hudson-Doyle cddfd42799 update .gitignore 2021-07-05 09:25:01 +12:00
Michael Hudson-Doyle cf931f673f update script to update exsting checkout 2021-07-05 09:23:39 +12:00
Michael Hudson-Doyle aa0dfb011d
Merge pull request #996 from mwhudson/fewer-apps
remove some apps from the snapcraft.yaml
2021-07-02 14:11:02 +12:00
Michael Hudson-Doyle f9410e4e86 install probert and curtin via Makefile for testing
rather than pip or apt respectively
2021-07-02 13:49:40 +12:00
Michael Hudson-Doyle 50ce450f2a add a gitdeps target to Makefile that checks out probert and curtin
This uses a silly python script to get the exact version that the
snapcraft.yaml specifies.
2021-07-02 13:48:49 +12:00
Michael Hudson-Doyle 8e253fb955 remove some apps from the snapcraft.yaml 2021-07-02 11:59:21 +12:00
Dan Bungert 5b54579d24
Unhardcode path to subiquity-loadkeys (#994)
With multiple users of subiquity in different ways, this may not be
always available at this specific location.
2021-07-01 17:45:37 -06:00
Michael Hudson-Doyle bfb6a38b56
Merge pull request #995 from dbungert/lp-1934408
Default selected_language to en_US if LANG is not helpful
2021-07-02 11:38:19 +12:00
Dan Bungert f57b3d1f61 Default selected_language to en_US if LANG is not helpful 2021-07-01 17:26:21 -06:00
Dan Bungert 90b1bb9eed
Refactor - drop external_temp_file (#985)
Move unattended-upgrades to part of postinstall, so it can be done
before the restore_apt_config umount, which lets us get rid of the
redundant external_temp_file logic.
2021-06-28 17:11:49 -06:00
Michael Hudson-Doyle edb101cf2a
Merge pull request #993 from mwhudson/lp-1933711
allow a mount action to not have a device
2021-06-29 11:03:44 +12:00
Michael Hudson-Doyle cf75408e46
Merge pull request #992 from mwhudson/generalize-_one-_all
make two FilesystemModel helper methods slightly more general
2021-06-29 10:56:03 +12:00
Michael Hudson-Doyle 7de63e7aae allow a mount action to not have a device
for https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1933711
2021-06-28 10:49:46 +12:00
Michael Hudson-Doyle 067c3a949b make two FilesystemModel helper methods slightly more general
so I can adapt a call to not require changes when imsm volumes become
possible boot devices
2021-06-25 13:52:29 +12:00
Michael Hudson-Doyle 16d34299b2
Merge pull request #989 from mwhudson/old-raid-size
for an existing raid, read the size out of udev data rather than guessing
2021-06-25 08:55:21 +12:00
Michael Hudson-Doyle acda94b77a
Merge pull request #990 from mwhudson/clean-up-meth
remove a method that got missed in some previous branch
2021-06-24 19:38:55 +12:00
Michael Hudson-Doyle 71810263b0 remove a method that got missed in some previous branch 2021-06-24 19:32:26 +12:00
Michael Hudson-Doyle ac964b4312 for an existing raid, read the size out of udev data rather than guessing 2021-06-23 15:12:16 +12:00
Michael Hudson-Doyle 580d040398
Merge pull request #988 from mwhudson/workaround-lp-1925745
install packages with -o APT::Get::Always-Include-Phased-Updates=true
2021-06-17 10:42:38 +12:00
Michael Hudson-Doyle 6ab29c5868 install packages with -o APT::Get::Always-Include-Phased-Updates=true
to work around bug #1925745 in apt until it is SRUed.
2021-06-17 10:37:35 +12:00
Michael Hudson-Doyle 5e7a6b89fb
Merge pull request #984 from fulldecent/main
Correct spelling of GitHub
2021-06-16 22:03:36 +12:00
William Entriken 5876f7e770 Correct spelling of GitHub 2021-06-15 15:08:36 -04:00
Dan Bungert 6a189dd598
Add EventCallback, and move mirror task things to GeoIP (#983)
Move mock_app to common location.
Move run_coro to subiquitycore so that subiquitycore doesn't have to
reference things in subiquity, even for test.
Move task tracking things from mirror to geoip.
Server app owns the geoip instance.
Create EventCallback as an alternative to MessageHub that should
hopefully express clearer intermodule dependencies.
2021-06-14 16:05:27 -06:00
Michael Hudson-Doyle 92bc06b5c0
Merge pull request #982 from mwhudson/snap-fix
add python3-yaml to build-packages (make-kbd-info.py now indirectly r…
2021-06-11 15:37:38 +12:00
Michael Hudson-Doyle 5f6695d9d3 add python3-yaml to build-packages (make-kbd-info.py now indirectly requires this) 2021-06-11 14:21:16 +12:00
Michael Hudson-Doyle 83d076975d
Merge pull request #979 from mwhudson/install-wpasupplicant-on-demand
install wpasupplicant when a wifi nic is seen
2021-06-10 12:54:09 +12:00
Dan Bungert 6aa33ecddc
GeoIP: split out, add timezone (#981)
Split GeoIP out to a distinct class.
Add timezone support to it.
Add GeoIP tests.
2021-06-09 18:44:47 -06:00