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
No related branches found
No related tags found
No related merge requests found
...@@ -143,6 +143,9 @@ class FstabGenerator(object): ...@@ -143,6 +143,9 @@ class FstabGenerator(object):
def generate_crypttab_line_info(self, partition): def generate_crypttab_line_info(self, partition):
""" Generates information for each crypttab entry. """ """ Generates information for each crypttab entry. """
if "luksMapperName" not in partition or "luksUuid" not in partition:
return None
mapper_name = partition["luksMapperName"] mapper_name = partition["luksMapperName"]
mount_point = partition["mountPoint"] mount_point = partition["mountPoint"]
luks_uuid = partition["luksUuid"] luks_uuid = partition["luksUuid"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment