~ogayot/curtin:apt-pinning

Last commit made on 2022-01-10
Get this branch:
git clone -b apt-pinning https://git.launchpad.net/~ogayot/curtin
Only Olivier Gayot can upload to this branch. If you are Olivier Gayot please log in for upload directions.

Branch merges

Branch information

Name:
apt-pinning
Repository:
lp:~ogayot/curtin

Recent commits

4a5bede... by Olivier Gayot

Add support for APT preferences in apt-config

apt-config now supports a list of APT preferences (i.e. pinning rules)
as in the following example:

apt:
  preferences:
    - {package: "python3-*", pin: "origin *ubuntu.com*", pin-priority: 200}
    - {package: "python-*", pin: "origin *ubuntu.com*", pin-priority: -1}

These preferences are deployed under
<target>/etc/apt/preferences.d/90-curtin.pref using the format specified
in apt_preferences(5).

  Package: python3-*
  Pin: origin *ubuntu.com*
  Pin-Priority: 200

  Package: python-*
  Pin: origin *ubuntu.com*
  Pin-Priority: -1

Signed-off-by: Olivier Gayot <email address hidden>

048db82... by Dan Bungert

build-deb: changelog gen with dch

* primary reason for this is to generate the changelog with a real
  DEBNAME/DEBEMAIL
* remove template debian/changelog.trunk
* assume debian version 0ubuntu1
* let dch manage the changelog file

7ca17ac... by Dan Bungert

vmtests uefi: relax the uefi check

The addition of extra members of the efi dir is not a failure.
Relax this check to just a basic check that the efi dir is there.

9ea6be1... by Dan Bungert

block: output partition device path

reconstructing this later is non-trivial for some devices

bc849fe... by Michael Hudson-Doyle

support version 2 curtin storage configs

effectively identical to version 1 for now

0ec2e36... by Dan Bungert

system-upgrade: lookup os family

`curtin system-upgrade` needs an osfamily lookup, as the command itself
neither takes an argument of the osfamily nor attempts to provide it.

6e74305... by Michael Hudson-Doyle

add preserve: true support to the image action

c5ccb0b... by Dan Bungert

version to 21.3

e09dc90... by Dan Bungert

distro: handle ID_LIKE

Add support for ID_LIKE to simplify new variant handling.

Co-authored-by: Julian Andres Klode <email address hidden>

94e27a3... by Michael Hudson-Doyle

block_meta: pass handlers dict to all handlers

when we have different handlers for v2 and v1 we will need the
invocation of e.g. disk_handler from raid_handler to go to the right
version.