[fstab] Merge pull request #1901 from dalto8/fstabuuid
Fix empty UUID detection in fstab
This commit is contained in:
commit
c35da331a2
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user