[fstab] Fix empty UUID detection

This commit is contained in:
dalto 2022-03-12 15:47:54 -06:00 committed by Philip Müller
parent a99ee4a7f1
commit b895fae85c

View File

@ -265,7 +265,7 @@ class FstabGenerator(object):
if has_luks:
device = "/dev/mapper/" + partition["luksMapperName"]
elif partition["uuid"] is not None:
elif partition["uuid"]:
device = "UUID=" + partition["uuid"]
else:
device = partition["device"]