Skip to content
Snippets Groups Projects
Commit 66a51603 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Check for existence of LUKS information.

parent 0f8ef422
Branches
Tags
No related merge requests found
......@@ -143,6 +143,9 @@ class FstabGenerator(object):
def generate_crypttab_line_info(self, partition):
""" Generates information for each crypttab entry. """
if "luksMapperName" not in partition or "luksUuid" not in partition:
return None
mapper_name = partition["luksMapperName"]
mount_point = partition["mountPoint"]
luks_uuid = partition["luksUuid"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment