~dbungert/curtin:swap-logging

Last commit made on 2023-08-30
Get this branch:
git clone -b swap-logging https://git.launchpad.net/~dbungert/curtin
Only Dan Bungert can upload to this branch. If you are Dan Bungert please log in for upload directions.

Branch merges

Branch information

Name:
swap-logging
Repository:
lp:~dbungert/curtin

Recent commits

040f267... by Dan Bungert

swap: add logging

The suggested swap size code just sort of returns 0 sometimes and
figuring out why is a complicated analysis of several variables.

Provide diagnostic info on those values, and the reason for the
decision.

bdd9069... by Michael Hudson-Doyle

ensure grub-pc is installed on non-UEFI amd64 installs

I was sure curtin did this already but LP: #2033496 says not.

5128d5d... by Olivier Gayot

block_meta: add luks recovery key if requested

If the storage configuration contains the key "recovery_keyfile", call
cryptsetup luksAddKey after cryptsetup luksFormat so that the key
specified is added as a recovery key (i.e., a normal key in the second
key slot).

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

7ed8b10... by Nick Rosbrook

apt-config: use debian.deb822 to simplify deb822 source parsing

The Deb822 provides an iter_paragraphs() function that can do the
parsing for us, so use that instead.

bea1ff9... by Nick Rosbrook

docs: mention deb822 in apt source documentation

19cc4aa... by Nick Rosbrook

apt-config: add logic for migration to deb822 sources

When processing sources for sources.list or drop-ins in
/etc/apt/sources.list.d, if the target wants deb822 sources by default,
then do the conversion to deb822 on the fly.

The core of this is convert_sources_to_deb822(), which takes existing
source entries and consolidates them into equivalent deb822 entries.

b62ba80... by Nick Rosbrook

apt-config: add deb822 logic to add_apt_sources

This adds handling for a deb822 version of the "proposed" template, and
handles .sources file extensions.

499e018... by Nick Rosbrook

apt-config: add support for deb822 source generation

Provide the existing functionality of generate_sources_list using deb822
sources. This does not yet include logic for migrating from sources.list
to deb822 sources.

2f38bc7... by Nick Rosbrook

unittests: stub out deb822 tests

Add a mock_want_deb822() decorator, and explicitly mark which test
functions should use deb822 or not. Define stubs for deb822 versions of
test functions that interact with sources.list.

f519abe... by Nick Rosbrook

apt-config: introduce want_deb822() helper

Add a helper function that indicates whether or not we want deb822
sources on the target. This is determined by checking if we are running
Ubuntu 23.10 or later, because this is the release where deb822 sources
are used by default.