lp:~bryanfraschetti/curtin

Owned by Bryan Fraschetti
Get this repository:
git clone https://git.launchpad.net/~bryanfraschetti/curtin
Only Bryan Fraschetti can upload to this repository. If you are Bryan Fraschetti please log in for upload directions.

Branches

Name Last Modified Last Commit
custom-apt-keys 2024-11-05 15:11:11 UTC
feat: Custom keys for apt archives

Author: Bryan Fraschetti
Author Date: 2024-11-05 15:11:11 UTC

feat: Custom keys for apt archives

Users with local Ubuntu archive mirrors and Landscape instances have
been unable to specify the corresponding gpg keys. This resulted in
errors such as "NO_PUBKEY" on commands such as "apt update"

This commit adds the functionality to read a user specified "key" field
in the primary and security sections of the apt declaration in a
autoinstall.yaml. The provided key can be raw or path based, and
is formatted appropriately. The function that provides this feature,
get_mirror_key was modelled after the existing function, get_mirror,
which obtains user specified archive URIs. The deb822 templates were
updated to reflect the new primary and security key parameters

If no primary key is declared, it defaults to the distro gpg key in
/usr/share/keyrings. If no security mirror is declared, the
corresponding key falls back on the primary key. This is to match the
existing behaviour where the security mirror falls back on the primary
mirror URI. Therefore, when no keys are specified, the behaviour
becomes indistinguishable from the current cloud-init implementation

master 2024-10-01 15:23:51 UTC
block: fix string interpolation when building RuntimeError

Author: Olivier Gayot
Author Date: 2024-10-01 14:25:45 UTC

block: fix string interpolation when building RuntimeError

The get_partition_sfdisk_info function means to raise a RuntimError if
the specified device is not found in the sfdisk output. However, the
string interpolation does not work because of missing parens. As a
consequence, a TypeError exception is raised instead of the
RuntimeError.

LP: #2059414

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>

12 of 2 results
This repository contains Public information 
Everyone can see this information.

Subscribers