Commit Graph

213 Commits

Author SHA1 Message Date
Dan Bungert c7eea37546 curtin: rev for zpool `key: null` syntax 2023-08-24 17:42:09 -06:00
Michael Hudson-Doyle c028390a71 update curtin, and add 'uuid' attribute to Partition objects 2023-08-10 16:56:48 +12:00
Dan Bungert 7d8499e36a snapcraft: fix probert, add curtin runners
Make it so that probert and curtin can be run from the snap.  Invoked as
subiquity.probert and subiquity.curtin respectively.
2023-08-01 21:25:48 -06:00
Dan Bungert 3b72241a4d snapcraft: update curtin for swap size avail 2023-07-25 16:35:58 -06:00
Michael Hudson-Doyle 8c958dda7e update curtin
2495681a support dd-raw:file:// urls
ecd94789 have ChrootableTarget ignore allow_daemons when target == "/"

I need the former for the core desktop installation stuff, the latter to
fix integration tests in some environments.
2023-07-19 15:45:46 +12:00
Michael Hudson-Doyle f0ce323ca2 update probert 2023-07-11 23:11:31 +12:00
Olivier Gayot 9de3beb6ce snapcraft: pickup curtin's 'kernel: null' fix
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-07-10 18:26:37 +02:00
Olivier Gayot 6424c3c52b oem: ensure a single kernel gets installed
Before running curthooks, we now look in the target if there is an
installed kernel. If there is, we instruct curtin _not_ to install
another one.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-07-03 09:59:45 +02:00
Michael Hudson-Doyle 9ed9f4e469 update curtin and adapt to API change 2023-06-13 09:22:24 +12:00
Michael Hudson-Doyle 16ff550a2c update curtin 2023-06-08 12:43:18 +12:00
Olivier Gayot 39623077d7 snapcraft: use latest curtin and probert
This will pull the fixes for the utf-8 partition names.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-05-16 18:00:03 +02:00
Olivier Gayot 60f2b506db prober: move to asyncio for probert storage
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-04-25 15:12:19 +02:00
Olivier Gayot 81acb6eb9f snapcraft: bump curtin to handled logical swap partitions
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-04-25 10:56:58 +02:00
Dan Bungert fe2b3f2d88 snapcraft: rev for ntfsresize change 2023-04-18 19:13:54 +01:00
Olivier Gayot 55a5ebd42b snapcraft: bump probert to pickup verbosity fix
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-04-17 09:08:10 +02:00
Dan Bungert fd1fc1c1d3 snapcraft: rev probert for diagnostics 2023-04-11 17:25:11 -06:00
Olivier Gayot 4c4ab16f7d snapcraft: update curtin to fix disk lookups with wwn extensions
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-04-03 20:34:00 +02:00
Olivier Gayot 8eca07c706
Merge pull request #1621 from ogayot/ventoy-bump-curtin
snapcraft: bump version of curtin to pickup ventoy fix
2023-03-30 16:51:17 +02:00
Olivier Gayot 243da45bf6 snapcraft: bump version of curtin to pickup ventoy fix
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-03-30 16:33:15 +02:00
Dan Bungert 08e3201d4b system-setup: fix disappearing ubuntu-wsl-setup
Make a copy of this file to INSTALL, as the organize step renames it,
causing it to disappear from the source directory.
2023-03-29 16:00:10 -06:00
Carlos Nihelton e0632609d5
Fix missing scrip in snap. 2023-03-20 13:42:50 -03:00
Olivier Gayot 9b18f45700 snapcraft: upgrade to core22
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-03-16 12:21:44 +01:00
Olivier Gayot 2bf79ddee9 curtin: bump version so we can install a package in two steps
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-03-02 16:05:25 +01:00
Olivier Gayot a96ffafc7f snapcraft: bump curtin rev to fix curthooks always running apt-config
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-03-02 09:25:13 +01:00
Dan Bungert e095d5040f network: use pyroute2 to manage default routes
The existing event based method of watching for has_network has a flaw.

The incoming route_change events from probert do not distinguish routes
on the same interface but a different metric, so if 2 routes on one
interface appear, we only get one event.  Then if one of those routes is
removed, we will inappropriately remove this route from the
default_routes list.

Aside from the code watching the event stream, the set of default routes
is an elaborate boolean value.

Simplify the code by passing around a boolean, and when we get a
route_change event, use that to go looking again at the list of default
routes.

LP: #2004659
2023-02-21 13:30:05 -07:00
Olivier Gayot 3d3a2aec4a snapcraft: update probert to get swap size fixes
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-02-20 16:42:58 +01:00
Olivier Gayot 85af81718e snapcraft: add pkg_resources to the snap
From subiquity, we sometimes execute entry point python scripts such as:

 * usr/bin/ubuntu-advantage
 * usr/bin/ssh-import-id

Those scripts require pkg_resources on core20 to run properly:

  from pkg_resources import load_entry_point

On core22, the scripts will be a bit more flexible but for now, we need
python3-pkg-resources in the snap.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-01-27 10:43:56 +01:00
Michael Hudson-Doyle ceff8a6095 snapcraft.yaml: Get all Python dependencies from the archive
Once we do this, there is no reason to use the 'python' plugin, so
switch to the 'nil' plugin with an override-build that calls pip for
each of the subiquity, curtin, and probert parts.
2022-12-15 11:24:10 +13:00
Michael Hudson-Doyle b1d95a2982 update curtin to get swap, quick_zero, first-lba fixes 2022-11-29 14:55:39 +13:00
Dan Bungert 1c59596913 curtin: rev for flash-kernel fix
LP: #1992990
2022-10-14 16:10:36 -06:00
Michael Hudson-Doyle 501054329f update curtin 2022-10-05 16:12:41 +13:00
Olivier Gayot b59141304e
Merge pull request #1430 from ogayot/LP#1987341
reserved-usernames: add groups created by udev (src:systemd)
2022-09-27 14:05:45 +02:00
Olivier Gayot b45f47acf2 reserved-usernames: build using latest version from user-setup.git
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-09-22 11:07:10 +02:00
Carlos Nihelton 5331268600
Adds the added script to the snap
Following the same path and naming conventions as UDI.
That allows for reuse of the existing snap mounting/bootstrapping
approach.
2022-09-19 14:41:24 -03:00
Dan Bungert 53a97f1156 snapcraft: rev curtin for cryptsetup fix 2022-09-06 18:02:11 -06:00
Dan Bungert cada41d7b9
Merge pull request #1396 from dbungert/no-double-jsonschema
snapcraft: remove dupe jsonschema
2022-09-01 12:37:22 -06:00
Dan Bungert 80d6c7c09d snapcraft: normalize 2022-08-29 13:54:51 -06:00
Dan Bungert a6ad70f153 snapcraft: remove dupe jsonschema 2022-08-25 12:08:21 -06:00
Olivier Gayot 324ff0bc8f Merge pull request #1372 from ogayot/FR-2475
install: invoke curtin multiple times with different stages
2022-08-11 11:11:51 +02:00
Olivier Gayot 9db6a0e658 snapcraft: bump version of curtin to bring step-by-step install
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-09 09:04:31 +02:00
Dan Bungert 0707dae62e curtin: rev for kname fix 2022-08-02 09:15:35 -06:00
Dan Bungert 73e4ee6fe5 keyboards: include layout config file in snap 2022-07-29 14:02:45 -06:00
Dan Bungert db95d2f215 snapcraft: set contact field 2022-07-26 17:42:52 -06:00
Michael Hudson-Doyle d9ad8134e9
Merge pull request #1351 from mwhudson/ignore-running
Pass ignore-running: true when refreshing ourself
2022-07-15 12:41:18 +12:00
Michael Hudson-Doyle 942e5f5f1b set _ORIG variables in environment for 'subiquity' app
this so orig_environ works when connecting via SSH
2022-07-15 12:13:37 +12:00
Dan Bungert 7aec411396 curtin: update for gpt preservation fixes 2022-07-13 09:38:52 -06:00
Dan Bungert 8a668edf4e snapcraft: +ntfs-3g 2022-06-29 12:38:35 -06:00
Dan Bungert 74e118d735 snapcraft: save env vars 2022-06-13 14:02:19 -06:00
Dan Bungert 73853e5769 snapcraft: rev probert 2022-05-31 09:09:33 -06:00
Dan Bungert 89e51b468a snapcraft: update curtin 2022-05-09 14:26:01 -06:00