~dbungert/curtin:close-cryptoswap-questionmark

Last commit made on 2024-02-29
Get this branch:
git clone -b close-cryptoswap-questionmark 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:
close-cryptoswap-questionmark
Repository:
lp:~dbungert/curtin

Recent commits

d3540a1... by Dan Bungert

do we need this for zpool export?

c3c4f42... by Dan Bungert

util: human2bytes actually return int

3d431ba... by Dan Bungert

zpool: create keystore encrypted setups

Add support for the 'luks_keystore' style encrypted ZFS install. Native
ZFS encryption is supported by a small dm_crypt dataset containing the
real key. This is a functional transcription of the way that Ubiquity
has implemented encrypted guided ZFS.

e01fe40... by Dan Bungert

dm_crypt: tests related to keyfile removal

5999a74... by Dan Bungert

dm_crypt: clearer name for keyfile removal

1a3efd1... by Dan Bungert

dm_crypt: create and use cryptoswap as PLAIN

Previously, cryptoswap was acting strangely, in that at install time it
was considered to be a LUKS2 device and durign actual system use it
would be considered a PLAIN device, in the cryptsetup(8) meanings of
these terms.

This caused problems when attempting to reference the device, as we
would do get_volume_spec(), the returned /dev/disk/by-id/dm-uuid-...
value would be wrong - it would change from dm-uuid-CRYPT-LUKS2-... to
dm-uuid-CRYPT-PLAIN-...

As the real runtime behavior is to be a PLAIN device for cryptoswap,
stop creating it as a LUKS2 device and just use it as a PLAIN device,
which doesn't involve a "create" step at all, you just open it as PLAIN
directly.

9274f95... by Dan Bungert

dm_crypt: split create and open operations

fc39d74... by Dan Bungert

block_meta: improve get_volume_uuid

blkid can return 3 different types of UUIDs, and they aren't
interchangable. Clarify which one we're using.

Also, leverage the existing blkid() wrapper to do so.

a85f7d6... by Alexsander de Souza

raise exception on bcache validation errors

returning the exception is probably a typo

cbe2186... by Skia

pycodestyle: make use of isinstance() instead of type()

Should fix curtin-style-tip job.