~ogayot/curtin:recovery-key

Last commit made on 2023-08-30
Get this branch:
git clone -b recovery-key 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:
recovery-key
Repository:
lp:~ogayot/curtin

Recent commits

2bfebab... 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.

09899c7... by Dan Bungert

zpool: allow selective default property override

zpool fs or pool properties may now use underlying fs defaults with
key: null.

fbbc949... by Dan Bungert

zfs: simpler _join_flags declaration

Co-authored-by: Michael Hudson-Doyle <email address hidden>