From ed44f2404841f0c145ff449faab4c38241cb6a2f Mon Sep 17 00:00:00 2001
From: Teo Mrnjavac <teo@kde.org>
Date: Thu, 10 Mar 2016 17:35:20 +0100
Subject: [PATCH] Don't fail.

---
 src/modules/bootloader/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/bootloader/main.py b/src/modules/bootloader/main.py
index 3796d7aacf..808784fa3d 100644
--- a/src/modules/bootloader/main.py
+++ b/src/modules/bootloader/main.py
@@ -224,7 +224,7 @@ def prepare_bootloader(fw_type):
                     print("Boot partition: \"{!s}\"".format(boot_p))
                     print("Boot device: \"{!s}\"".format(device))
 
-        if not boot_device:
+        if not device:
             print("WARNING: no EFI system partition or EFI system partition mount point not set.")
             print("         >>> no EFI bootloader will be installed <<<")
             return None
-- 
GitLab