[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: 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"]