Commit Graph

234 Commits

Author SHA1 Message Date
Olivier Gayot 4bbab28588 snapcraft: bump curtin rev for ZFS string interpolation fix
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-04-17 14:50:10 +02:00
Dan Bungert 26d1e197eb snapcraft: rev for more zfs / udev fixes 2024-04-14 11:40:22 -06:00
Dan Bungert ed9aab0289 snapcraft: rev for flock-ex 2024-03-25 11:31:46 -06:00
Olivier Gayot 09b79aeaf2 snapcraft: bump curtin revision for apt-config warning fix
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-03-25 14:23:06 +01:00
Dan Bungert 6fa59f5cdf snapcraft: drop os-prober from the server snap 2024-03-14 10:57:25 -06:00
Olivier Gayot bd59804c36 snapcraft: bump curtin rev for conditional nvme-stas installation
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-03-14 09:48:05 +01:00
Chris Peterson 56a785fe02 curtin: bump rev to pickup /cdrom/.disk hook
A new builtin curthook was introduced to address copying over
common metadata from /cdrom/.disk/ at install time. This addressed
copying /cdrom/.disk/info and /cdrom/.disk/ubuntu_dist_channel
(LP: #2037038).
2024-03-13 12:56:20 -07:00
Olivier Gayot 3fd013205f snapcraft: bump curtin revision for the SYSTEMD_OFFLINE handling
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-03-13 15:57:48 +01:00
Olivier Gayot 2670f4857d filesystem: accept to place the rootfs on remote storage for NVMe-o-TCP
Now that curtin more or less supports NVMe over TCP with the rootfs on
remote storage, relax the contraints set by subiquity.

We still need the /boot (and /boot/efi) partitions on local storage
though.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-03-06 10:44:07 +01:00
Olivier Gayot a42ea0a685 ubuntu-pro: return number of packages and EOL ESM in /ubuntu_pro/info
We now rely on distro-info to find out the EOL ESM date on LTS releases.
This information is meant to be shown on the Ubuntu Pro screens ;
instead of hardcoded values.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-02-13 13:02:25 +01:00
Olivier Gayot c95716669c storage: expect optional NVMe controllers in the storage config
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-02-08 19:17:05 +01:00
Olivier Gayot 1b58eaa6c6 snapcraft: bump probert to get NVMe controllers information
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2024-01-10 10:16:08 +01:00
Olivier Gayot a36d969745 snapcraft: update curtin for the efivarfs statfs workaround
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-10-27 09:30:23 +02:00
Dan Bungert ca8f1ca826 snapcraft: curtin logs change 2023-10-05 18:26:14 -06:00
Olivier Gayot 22b6d1258b Bump curtin rev for recovery key on systems using zkey
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-09-22 09:34:22 +02:00
Dan Bungert ea7b683d8e snapcraft: rev curtin for deb822, large sectors
This curtin rev adds the following:
Dan Bungert (3):
      extract: log source information
      tests/data: 4k sector disk
      storage_config: handle partitions on 4k disk

Nick Rosbrook (1):
      apt: disable default deb822 migration
2023-09-19 18:22:58 -06:00
Olivier Gayot 75ab969d8b snapcraft: update curtin - deb822 source fix when all series disabled
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-09-08 22:59:34 +02:00
Dan Bungert 5aba05d267 snapcraft: update curtin for apt distro fix 2023-09-01 14:26:39 -06:00
Dan Bungert f052626f60 snapcraft: rev curtin
For grub-pc LP: #2033496 fix.
2023-08-30 09:26:53 -06:00
Olivier Gayot 108a308534 snapcraft: bump curtin for recovery key support
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-08-30 16:45:42 +02:00
Dan Bungert 9467cd5713 snapcraft: update curtin, +python3-debian
Add sources.list in deb822 support.
2023-08-25 11:15:18 -06:00
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