Skip to content
Snippets Groups Projects
Commit b895fae8 authored by dalto's avatar dalto Committed by Philip Müller
Browse files

[fstab] Fix empty UUID detection

parent a99ee4a7
No related branches found
No related tags found
No related merge requests found
...@@ -265,7 +265,7 @@ class FstabGenerator(object): ...@@ -265,7 +265,7 @@ class FstabGenerator(object):
if has_luks: if has_luks:
device = "/dev/mapper/" + partition["luksMapperName"] device = "/dev/mapper/" + partition["luksMapperName"]
elif partition["uuid"] is not None: elif partition["uuid"]:
device = "UUID=" + partition["uuid"] device = "UUID=" + partition["uuid"]
else: else:
device = partition["device"] device = partition["device"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment