[fstab] Fix empty UUID detection
This commit is contained in:
parent
a99ee4a7f1
commit
b895fae85c
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user