From b5faf1be9be4c5906afe1c4950a83823bee2d5ae Mon Sep 17 00:00:00 2001 From: dalto Date: Sat, 12 Mar 2022 15:47:54 -0600 Subject: [PATCH] [fstab] Fix empty UUID detection --- src/modules/fstab/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]