~mwhudson/curtin:v2-remaining-fixes

Last commit made on 2022-02-21
Get this branch:
git clone -b v2-remaining-fixes https://git.launchpad.net/~mwhudson/curtin
Only Michael Hudson-Doyle can upload to this branch. If you are Michael Hudson-Doyle please log in for upload directions.

Branch merges

Branch information

Name:
v2-remaining-fixes
Repository:
lp:~mwhudson/curtin

Recent commits

82e1b35... by Michael Hudson-Doyle

remove offset from injected prep partition

as v2 partitioning respects offsets, this now causes failures

9023be1... by Michael Hudson-Doyle

stuff

e8ad31c... by Michael Hudson-Doyle

write a small novel about why we call udevadm settle here

bfdd7cf... by Michael Hudson-Doyle

lazily call sfdisk_info

because calling sfdisk_info when there is no partition table makes the vmtests fail

17b4d21... by Michael Hudson-Doyle

misc fixes

006dcc4... by Dimitri John Ledkov

Add rocky linux as a RHEL-like variant

38a5455... by Michael Hudson-Doyle

Update pylint version in tox.ini

The currently specified version does not work with the typing module
from Python 3.9, thus causing spurious isses on impish.

891e82c... by Michael Hudson-Doyle

block_meta: implement v2 partitioning

v2 partitioning respects supplied offsets and deletes
unreferenced partitions.

484ec0d... by Michael Hudson-Doyle

Stop running CI against Python 2

We are going to stop supporting Python 2 in future
development. There is plenty more stuff we can rip out as a
consequence of this but dropping it from CI is the first step and
unblocks other changes.

bfbba20... by Olivier Gayot

Make sure curthooks do not discard APT preferences

Although APT preferences applied properly when running curtin
apt-config, we observed during a full installation using Subiquity that
the preferences would not be honored when installing packages from the
"packages" autoinstall section.

This happened because the installation of packages occur after running
curthooks. Curtooks call handle_apt with an almost empty configuration.
Therefore, we would overwrite the preferences by removing the
etc/apt/preferences.d/90curtin.pref file.

It is to be noted that the same behavior occurs for the APT proxy.

Fixed by not removing etc/apt/preferences.d/90curtin.pref when the
configuration does not contain APT preferences.

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