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

Added check for presence of systemd unit file before encryption #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SivolcC
Copy link

@SivolcC SivolcC commented Sep 23, 2020

Hello,

This PR goal is to avoid eventual pitfalls in case Vaultlocker is installed in a virtualenv.
Indeed when installed this way, Vaultlocker won't have the [email protected] systemd unit in neither /usr/lib/systemd/system nor /etc/systemd/system
This can be a problem, because if volumes are encrypted without this file present, they won't be decrypted automatically at boot (the user would have to manually run commands to do so).

In this PR, a check if performed before encrypting volumes. If the files are not found, a FileNotFoundError exception is raised.

Open to any remarks or questions.

@SivolcC SivolcC force-pushed the check_systemd_files branch 4 times, most recently from 8f65641 to 35f90dc Compare September 25, 2020 14:30
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