Skip to content

Conversation

@lwbt
Copy link

@lwbt lwbt commented Apr 30, 2024

Hello James,

thank you for sharing your script in this thread.

I wanted to be able to run it from pipx, so I did some investigation what would be required for a basic configuration.

The script can actually be run already with pipx, but the invocation is a bit long:

pipx run https://raw.githubusercontent.com/jps-help/python-snap2luks/main/snap2luks.py

This is a bit shorter

pipx run --spec git+https://github.com/jps-help/python-snap2luks snap2luks

Installing and then running it from anywhere:

pipx install git+https://github.com/jps-help/python-snap2luks
snap2luks

Ideally when it's mature enough and published to PyPI:

pipx install python-snap2luks

I would have loved to provide and example where the keys are not written to disk at all, but cryptsetup complained when I tried sudo cryptsetup luksAddKey --key-file <(pipx run ... ) /dev/nvme0n1p4.

lwbt added 4 commits April 30, 2024 21:29
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.

1 participant