Commit Graph

4276 Commits

Author SHA1 Message Date
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
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