diff --git a/src/modules/fstab/main.py b/src/modules/fstab/main.py index 07a00c14d..9bc427b13 100644 --- a/src/modules/fstab/main.py +++ b/src/modules/fstab/main.py @@ -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"]