Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use libblockdev instead of pycryptsetup #162

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lpereira
Copy link

Cryptsetup 2.0.6 deprecated pycryptsetup, and it has been removed from
version 2.1.0. All the functionality needed for ister is available in
libblockdev, so make it use that instead.

This has not been tested. It's just a RFC.

Signed-off-by: Leandro Pereira [email protected]

Cryptsetup 2.0.6 deprecated pycryptsetup, and it has been removed from
version 2.1.0.  All the functionality needed for ister is available in
libblockdev, so make it use that instead.

This has not been tested.  It's just a RFC.

Signed-off-by: Leandro Pereira <[email protected]>
import pycryptsetup
import gi
gi.require_version("BlockDev", "2.0")
from gi.repository import BlockDev as bd
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh fun, gobject introspection. Well I guess that's making good use of the gnome stack.

@bryteise
Copy link
Owner

Looks fine to me. Everything seems to make sense. I wonder though if we could fail earlier in case of errors in the two new calls for setting up LUKS? I'm not really bothered by this behavior though as it would still fail eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants